rust/src/test/compile-fail/unique-pinned-nocopy.rs

12 lines
161 B
Rust

// error-pattern: copying a noncopyable value
struct r {
b:bool,
drop {}
}
fn main() {
let i = move ~r { b: true };
let j = i;
log(debug, i);
}