2022-12-29 17:14:29 -06:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/ctfe-labelled-loop.rs:6:5
|
|
|
|
|
|
|
|
|
LL | / 'mylabel: loop {
|
|
|
|
LL | | if i > n {
|
|
|
|
LL | | break 'mylabel
|
|
|
|
LL | | }
|
|
|
|
LL | | i += 1;
|
|
|
|
LL | | }
|
|
|
|
| |_____^ exceeded interpreter step limit (see `#[const_eval_limit]`)
|
|
|
|
|
|
|
|
|
note: inside `labelled_loop`
|
|
|
|
--> $DIR/ctfe-labelled-loop.rs:6:5
|
|
|
|
|
|
|
|
|
LL | / 'mylabel: loop {
|
|
|
|
LL | | if i > n {
|
|
|
|
LL | | break 'mylabel
|
|
|
|
LL | | }
|
|
|
|
LL | | i += 1;
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
note: inside `X`
|
|
|
|
--> $DIR/ctfe-labelled-loop.rs:15:16
|
|
|
|
|
|
|
|
|
LL | const X: u32 = labelled_loop(19);
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
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
|
|
|
|
2022-12-29 17:14:29 -06:00
|
|
|
For more information about this error, try `rustc --explain E0080`.
|