9 lines
112 B
Rust
9 lines
112 B
Rust
|
// error-pattern: use of moved variable
|
||
|
|
||
|
fn main() {
|
||
|
let x = 3;
|
||
|
let y = move x;
|
||
|
debug!("%d", x);
|
||
|
}
|
||
|
|