9 lines
194 B
Rust
9 lines
194 B
Rust
|
fn main() {
|
||
|
let x = Some(unsafe::exclusive(true));
|
||
|
match move x {
|
||
|
Some(ref z) if z.with(|b| *b) => {
|
||
|
do z.with |b| { assert *b; }
|
||
|
},
|
||
|
_ => fail
|
||
|
}
|
||
|
}
|