2022-11-02 06:57:40 -05:00
|
|
|
error: constant evaluation is taking a long time
|
|
|
|
--> $DIR/ctfe-recursion.rs:9:9
|
2022-12-29 17:14:29 -06:00
|
|
|
|
|
|
|
|
LL | recurse(n - 1)
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
2022-11-02 06:57:40 -05:00
|
|
|
= note: this lint makes sure the compiler doesn't get stuck due to infinite loops in const eval.
|
|
|
|
If your compilation actually takes a long time, you can safely allow the lint.
|
|
|
|
help: the constant being evaluated
|
|
|
|
--> $DIR/ctfe-recursion.rs:13:1
|
2022-12-29 17:14:29 -06:00
|
|
|
|
|
|
|
|
LL | const X: u32 = recurse(19);
|
2022-11-02 06:57:40 -05:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
= note: `#[deny(long_running_const_eval)]` on by default
|
2022-12-19 18:51:17 -06:00
|
|
|
|
2022-12-29 17:14:29 -06:00
|
|
|
error: aborting due to previous error
|
2022-12-19 18:51:17 -06:00
|
|
|
|