1 error[E0019]: constant contains unimplemented expression type
2 --> $DIR/infinite_loop.rs:19:9
4 LL | / while n != 0 { //~ ERROR constant contains unimplemented expression type
5 LL | | n = if n % 2 == 0 { n/2 } else { 3*n + 1 };
6 LL | | //~^ ERROR evaluation of constant value failed
10 warning: Constant evaluating a complex constant, this might take some time
11 --> $DIR/infinite_loop.rs:16:18
15 LL | | //~^ WARNING Constant evaluating a complex constant, this might take some time
16 LL | | let mut n = 113383; // #20 in https://oeis.org/A006884
17 LL | | while n != 0 { //~ ERROR constant contains unimplemented expression type
23 error[E0080]: evaluation of constant value failed
24 --> $DIR/infinite_loop.rs:20:20
26 LL | n = if n % 2 == 0 { n/2 } else { 3*n + 1 };
27 | ^^^^^^^^^^ duplicate interpreter state observed here, const evaluation will never terminate
29 error: aborting due to 2 previous errors
31 Some errors occurred: E0019, E0080.
32 For more information about an error, try `rustc --explain E0019`.