rust/src/test/compile-fail/unique-pinned-nocopy.rs
2012-11-14 19:26:37 -08:00

16 lines
192 B
Rust

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