WIP: Add an xfailed test for bind-by-move (#2329)

This commit is contained in:
Ben Blum 2012-08-22 20:37:59 -04:00
parent 37962288ec
commit 49c1bd7e86

View file

@ -0,0 +1,13 @@
// xfail-test
use std;
import 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
}
}