rust/src/test/compile-fail/unique-pinned-nocopy.rs
Brian Anderson 07e13fe447 Make some nocopy tests a bit more futureproof
Turn the let assignment initializers into move initializers since
that assignment is going to become illegal
2011-09-26 22:00:15 -07:00

10 lines
118 B
Rust

// error-pattern: mismatched kind
resource r(b: bool) {
}
fn main() {
let i <- ~r(true);
let j;
j = i;
}