summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-eval/stable-metric/ctfe-recursion.stderr
blob: ed9a31119427a8405a0623b89ea204c769f9f3f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
error[E0080]: evaluation of constant value failed
  --> $DIR/ctfe-recursion.rs:8:9
   |
LL |         recurse(n - 1)
   |         ^^^^^^^^^^^^^^ exceeded interpreter step limit (see `#[const_eval_limit]`)
   |
note: inside `recurse`
  --> $DIR/ctfe-recursion.rs:8:9
   |
LL |         recurse(n - 1)
   |         ^^^^^^^^^^^^^^
note: [... 18 additional calls inside `recurse` ...]
  --> $DIR/ctfe-recursion.rs:8:9
   |
LL |         recurse(n - 1)
   |         ^^^^^^^^^^^^^^
note: inside `X`
  --> $DIR/ctfe-recursion.rs:12:16
   |
LL | const X: u32 = recurse(19);
   |                ^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0080`.