2012-05-19 07:52:01 -05:00
|
|
|
fn main() {
|
2021-08-24 19:39:40 -05:00
|
|
|
|
|
|
|
let y: Box<isize> = 42.into();
|
2015-01-08 04:54:35 -06:00
|
|
|
let mut x: Box<isize>;
|
2021-08-24 19:39:40 -05:00
|
|
|
|
2012-05-19 07:52:01 -05:00
|
|
|
loop {
|
2014-10-14 20:07:11 -05:00
|
|
|
println!("{}", y);
|
2012-05-19 07:52:01 -05:00
|
|
|
loop {
|
|
|
|
loop {
|
|
|
|
loop {
|
2013-01-10 12:59:58 -06:00
|
|
|
x = y; //~ ERROR use of moved value
|
2013-07-02 14:47:32 -05:00
|
|
|
x.clone();
|
2012-05-19 07:52:01 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|