2014-05-06 01:56:44 +00:00
|
|
|
fn main() {
|
2021-08-25 00:39:40 +00:00
|
|
|
|
|
|
|
let y: Box<isize> = 42.into();
|
2015-01-08 10:54:35 +00:00
|
|
|
let mut x: Box<isize>;
|
2021-08-25 00:39:40 +00:00
|
|
|
|
2012-03-11 04:38:03 +00:00
|
|
|
loop {
|
2019-04-22 07:40:08 +00:00
|
|
|
println!("{}", y); //~ ERROR borrow of moved value: `y`
|
2013-07-02 19:47:32 +00:00
|
|
|
while true { while true { while true { x = y; x.clone(); } } }
|
2019-06-21 23:30:24 +00:00
|
|
|
//~^ WARN denote infinite loops with
|
|
|
|
//~| WARN denote infinite loops with
|
|
|
|
//~| WARN denote infinite loops with
|
2012-03-11 04:38:03 +00:00
|
|
|
}
|
2011-08-19 22:16:48 +00:00
|
|
|
}
|