Add a compile-fail test for #3255

This commit is contained in:
Ben Blum 2012-08-24 15:26:07 -04:00
parent 37bcd67a09
commit d09fd6561f

View File

@ -0,0 +1,9 @@
fn main() {
let x = some(unsafe::exclusive(false));
match x {
some(copy z) => { //~ ERROR copying a noncopyable value
do z.with |b| { assert !*b; }
}
none => fail
}
}