WIP: Add an xfailed test for bind-by-move (#2329)
This commit is contained in:
parent
37962288ec
commit
49c1bd7e86
1 changed files with 13 additions and 0 deletions
13
src/test/run-pass/bind-by-move.rs
Normal file
13
src/test/run-pass/bind-by-move.rs
Normal 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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue