mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
13 lines
389 B
Plaintext
13 lines
389 B
Plaintext
error[E0080]: evaluation of constant value failed
|
|
--> $DIR/infinite_loop.rs:6:9
|
|
|
|
|
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]`)
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0080`.
|