12 lines
226 B
Rust
12 lines
226 B
Rust
// error-pattern: copying a noncopyable value
|
|
|
|
resource r(_i: int) { }
|
|
|
|
fn main() {
|
|
// This can't make sense as it would copy the resources
|
|
let i <- [r(0)];
|
|
let j <- [r(1)];
|
|
let k = i + j;
|
|
log(debug, j);
|
|
}
|