rust/src/test/compile-fail/copy-a-resource.rs
2011-07-27 15:54:33 +02:00

5 lines
114 B
Rust

// error-pattern:Copying a non-copyable type
resource foo(i: int) { }
fn main() { let x <- foo(10); let y = x; }