summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-eval/stable-metric/ctfe-simple-loop.allow.stderr
blob: 30550f93ac10d24fc0930f12ba85f37d903cc478 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
warning: constant evaluation is taking a long time
  --> $DIR/ctfe-simple-loop.rs:9:5
   |
LL | /     while index < n {
LL | |
LL | |
LL | |
LL | |         index = index + 1;
LL | |     }
   | |_____^ the const evaluator is currently interpreting this expression
   |
help: the constant being evaluated
  --> $DIR/ctfe-simple-loop.rs:19:1
   |
LL | const Y: u32 = simple_loop(35);
   | ^^^^^^^^^^^^

warning: 1 warning emitted