mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
18 lines
308 B
Rust
18 lines
308 B
Rust
fn main() {
|
|
|
|
let y: Box<isize> = 42.into();
|
|
let mut x: Box<isize>;
|
|
|
|
loop {
|
|
println!("{}", y);
|
|
loop {
|
|
loop {
|
|
loop {
|
|
x = y; //~ ERROR use of moved value
|
|
x.clone();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|