rust/src/test/compile-fail/copy-a-resource.rs
2011-09-28 15:35:21 -07:00

6 lines
115 B
Rust

// error-pattern:cannot copy pinned type foo
resource foo(i: int) { }
fn main() { let x <- foo(10); let y = x; }