summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-eval/infinite_loop.stderr
blob: f30bfaf3f958ce5349428b3185c6a175a28222ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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`.