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-labelled-loop.rs:6:5
|
|
|
|
|
|
|
|
|
LL | / 'mylabel: loop {
|
2022-11-02 06:57:40 -05:00
|
|
|
LL | |
|
2022-12-29 17:14:29 -06:00
|
|
|
LL | | if i > n {
|
2022-11-02 06:57:40 -05:00
|
|
|
LL | | break 'mylabel;
|
2022-12-29 17:14:29 -06:00
|
|
|
LL | | }
|
|
|
|
LL | | i += 1;
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
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-labelled-loop.rs:16:1
|
2022-12-29 17:14:29 -06:00
|
|
|
|
|
|
|
|
LL | const X: u32 = labelled_loop(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
|
|
|
|