rust/src/test/compile-fail/copy-a-resource.rs
2011-06-28 18:00:38 +02:00

9 lines
118 B
Rust

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