blob: 9075a34d41089a4d7380dd1dd0be0cfc6539ca2f [file] [log] [blame]
// run-pass
use std::sync::Mutex;
pub fn main() {
let x = Some(Mutex::new(true));
match x {
Some(ref z) if *z.lock().unwrap() => {
assert!(*z.lock().unwrap());
},
_ => panic!()
}
}