fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1warning: denote infinite loops with `loop { ... }` 2 --> $DIR/liveness-move-in-while.rs:8:9 3 | 4LL | while true { while true { while true { x = y; x.clone(); } } } 5 | ^^^^^^^^^^ help: use `loop` 6 | 7 = note: `#[warn(while_true)]` on by default 8 9warning: denote infinite loops with `loop { ... }` 10 --> $DIR/liveness-move-in-while.rs:8:22 11 | 12LL | while true { while true { while true { x = y; x.clone(); } } } 13 | ^^^^^^^^^^ help: use `loop` 14 15warning: denote infinite loops with `loop { ... }` 16 --> $DIR/liveness-move-in-while.rs:8:35 17 | 18LL | while true { while true { while true { x = y; x.clone(); } } } 19 | ^^^^^^^^^^ help: use `loop` 20 21error[E0382]: borrow of moved value: `y` 22 --> $DIR/liveness-move-in-while.rs:7:24 23 | 24LL | let y: Box<isize> = box 42; 25 | - move occurs because `y` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait 26... 27LL | println!("{}", y); 28 | ^ value borrowed here after move 29LL | while true { while true { while true { x = y; x.clone(); } } } 30 | - value moved here, in previous iteration of loop 31 32error: aborting due to previous error 33 34For more information about this error, try `rustc --explain E0382`.