]> git.proxmox.com Git - rustc.git/blame - tests/ui/consts/const-eval/issue-52475.stderr
bump version to 1.79.0+dfsg1-1~bpo12+pve2
[rustc.git] / tests / ui / consts / const-eval / issue-52475.stderr
CommitLineData
fe692bf9 1error: constant evaluation is taking a long time
9ffffee4 2 --> $DIR/issue-52475.rs:5:9
8faf50e0 3 |
9ffffee4 4LL | / while n < 5 {
fe692bf9 5LL | |
9ffffee4
FG
6LL | | n = (n + 1) % 5;
7LL | | x = &0; // Materialize a new AllocId
8LL | | }
fe692bf9
FG
9 | |_________^
10 |
11 = note: this lint makes sure the compiler doesn't get stuck due to infinite loops in const eval.
12 If your compilation actually takes a long time, you can safely allow the lint.
13help: the constant being evaluated
14 --> $DIR/issue-52475.rs:2:18
15 |
16LL | let _ = [(); {
17 | __________________^
18LL | | let mut x = &0;
19LL | | let mut n = 0;
20LL | | while n < 5 {
21... |
22LL | | 0
23LL | | }];
24 | |_____^
25 = note: `#[deny(long_running_const_eval)]` on by default
8faf50e0 26
4b012472 27error: aborting due to 1 previous error
8faf50e0 28