rust/src/test/compile-fail/copy-a-resource.rs

9 lines
168 B
Rust
Raw Normal View History

2011-06-28 10:47:56 -05:00
// error-pattern:Copying a non-copyable type
// This is still not properly checked
// xfail-test
2011-07-27 07:19:39 -05:00
resource foo(i: int) { }
2011-06-28 10:47:56 -05:00
fn main() { let x <- foo(10); let y = x; }