rust/src/test/compile-fail/vec-pinned-nocopy-3.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
133 B
Rust

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