]>
Commit | Line | Data |
---|---|---|
1a4d82fc | 1 | fn main() { |
c295e0f8 XL |
2 | |
3 | let y: Box<isize> = 42.into(); | |
1a4d82fc | 4 | let mut x: Box<isize>; |
c295e0f8 | 5 | |
223e47cc | 6 | loop { |
48663c56 | 7 | println!("{}", y); //~ ERROR borrow of moved value: `y` |
1a4d82fc | 8 | while true { while true { while true { x = y; x.clone(); } } } |
416331ca XL |
9 | //~^ WARN denote infinite loops with |
10 | //~| WARN denote infinite loops with | |
11 | //~| WARN denote infinite loops with | |
223e47cc LB |
12 | } |
13 | } |