2012-08-22 19:37:59 -05:00
|
|
|
// xfail-test
|
2012-09-11 19:46:20 -05:00
|
|
|
extern mod std;
|
2012-09-05 14:32:05 -05:00
|
|
|
use std::arc;
|
2012-08-26 20:51:18 -05:00
|
|
|
fn dispose(+_x: arc::ARC<bool>) unsafe { }
|
2012-08-22 19:37:59 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let p = arc::arc(true);
|
|
|
|
let x = some(p);
|
|
|
|
match move x {
|
|
|
|
some(move z) => { dispose(z); },
|
|
|
|
none => fail
|
|
|
|
}
|
|
|
|
}
|