fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0019]: constant contains unimplemented expression type 2 --> $DIR/issue-52475.rs:6:15 3 | 4LL | while n < 5 { 5 | ^^^^^ 6 7error[E0019]: constant contains unimplemented expression type 8 --> $DIR/issue-52475.rs:6:9 9 | 10LL | / while n < 5 { 11LL | | 12LL | | 13LL | | n = (n + 1) % 5; 14LL | | x = &0; // Materialize a new AllocId 15LL | | } 16 | |_________^ 17 18warning: Constant evaluating a complex constant, this might take some time 19 --> $DIR/issue-52475.rs:2:18 20 | 21LL | let _ = [(); { 22 | __________________^ 23LL | | 24LL | | let mut x = &0; 25LL | | let mut n = 0; 26... | 27LL | | 0 28LL | | }]; 29 | |_____^ 30 31error[E0080]: evaluation of constant value failed 32 --> $DIR/issue-52475.rs:9:17 33 | 34LL | n = (n + 1) % 5; 35 | ^^^^^^^^^^^ duplicate interpreter state observed here, const evaluation will never terminate 36 37error: aborting due to 3 previous errors 38 39Some errors have detailed explanations: E0019, E0080. 40For more information about an error, try `rustc --explain E0019`.