rust/tests/ui/consts/const-eval/infinite_loop.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
389 B
Plaintext
Raw Normal View History

error[E0080]: evaluation of constant value failed
2023-01-04 05:04:03 +00:00
--> $DIR/infinite_loop.rs:6:9
|
2023-01-04 05:04:03 +00:00
LL | / while n != 0 {
LL | |
LL | | n = if n % 2 == 0 { n/2 } else { 3*n + 1 };
LL | | }
| |_________^ exceeded interpreter step limit (see `#[const_eval_limit]`)
2020-06-26 00:43:48 +00:00
error: aborting due to previous error
2020-06-26 00:43:48 +00:00
For more information about this error, try `rustc --explain E0080`.