Skip to content

Commit 49c1bd7

Browse files
committed
WIP: Add an xfailed test for bind-by-move (#2329)
1 parent 3796228 commit 49c1bd7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/test/run-pass/bind-by-move.rs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// xfail-test
2+
use std;
3+
import std::arc;
4+
fn dispose(+_x: arc::arc<bool>) unsafe { }
5+
6+
fn main() {
7+
let p = arc::arc(true);
8+
let x = some(p);
9+
match move x {
10+
some(move z) => { dispose(z); },
11+
none => fail
12+
}
13+
}

0 commit comments

Comments
 (0)