blob: f0a9ebdd08c4dd55d50f98733f634f9cf005c147 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// run-pass
use std::sync::Arc;
fn dispose(_x: Arc<bool>) { }
pub fn main() {
let p = Arc::new(true);
let x = Some(p);
match x {
Some(z) => { dispose(z); },
None => panic!()
}
}
|