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