2015-01-07 20:53:58 -06:00
|
|
|
#![feature(box_syntax)]
|
|
|
|
|
2012-05-19 07:52:01 -05:00
|
|
|
fn main() {
|
2015-01-08 04:54:35 -06:00
|
|
|
let y: Box<isize> = box 42;
|
|
|
|
let mut x: Box<isize>;
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|