14 lines
238 B
Rust
14 lines
238 B
Rust
// xfail-test
|
|
extern mod std;
|
|
use std::arc;
|
|
fn dispose(+_x: arc::ARC<bool>) unsafe { }
|
|
|
|
fn main() {
|
|
let p = arc::arc(true);
|
|
let x = some(p);
|
|
match move x {
|
|
some(move z) => { dispose(z); },
|
|
none => fail
|
|
}
|
|
}
|