1 error[E0019]: constant contains unimplemented expression type
2 --> $DIR/issue-52475.rs:6:15
7 error[E0019]: constant contains unimplemented expression type
8 --> $DIR/issue-52475.rs:6:9
13 LL | | n = (n + 1) % 5;
14 LL | | x = &0; // Materialize a new AllocId
18 warning: Constant evaluating a complex constant, this might take some time
19 --> $DIR/issue-52475.rs:2:18
24 LL | | let mut x = &0;
31 error[E0080]: evaluation of constant value failed
32 --> $DIR/issue-52475.rs:9:17
35 | ^^^^^^^^^^^ duplicate interpreter state observed here, const evaluation will never terminate
37 error: aborting due to 3 previous errors
39 Some errors have detailed explanations: E0019, E0080.
40 For more information about an error, try `rustc --explain E0019`.