error: any use of this value will cause an error | |
--> $DIR/const_eval_limit_reached.rs:6:5 | |
| | |
LL | / const X: usize = { | |
LL | | let mut x = 0; | |
LL | | while x != 1000 { | |
| |_____^ | |
LL | || | |
LL | || x += 1; | |
LL | || } | |
| ||_____^ exceeded interpreter step limit (see `#[const_eval_limit]`) | |
LL | | | |
LL | | x | |
LL | | }; | |
| |__- | |
| | |
= note: `#[deny(const_err)]` on by default | |
error: aborting due to previous error | |