2022-11-02 06:57:40 -05:00
|
|
|
error: constant evaluation is taking a long time
|
2022-12-29 17:14:29 -06:00
|
|
|
--> $DIR/ctfe-fn-call.rs:28:5
|
|
|
|
|
|
|
|
|
LL | foo();
|
|
|
|
| ^^^^^
|
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-fn-call.rs:32:1
|
2022-12-29 17:14:29 -06:00
|
|
|
|
|
|
|
|
LL | const X: u32 = call_foo();
|
2022-11-02 06:57:40 -05:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
= note: `#[deny(long_running_const_eval)]` on by default
|
2022-12-28 21:38:34 -06:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-12-28 21:38:34 -06:00
|
|
|
|