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

6 lines
115 B
Rust
Raw Normal View History

// error-pattern:cannot copy pinned type foo
2011-07-27 14:19:39 +02:00
resource foo(i: int) { }
2011-06-28 17:47:56 +02:00
fn main() { let x <- foo(10); let y = x; }