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