6 lines
131 B
Rust
6 lines
131 B
Rust
// error-pattern: copying a noncopyable value
|
|
|
|
resource foo(i: int) { }
|
|
|
|
fn main() { let x <- foo(10); let y = x; log(error, x); }
|