]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const_limit/const_eval_limit_reached.stderr
be522dd6d5d5a53d942222f468201939fa5e7c29
[rust.git] / src / test / ui / consts / const_limit / const_eval_limit_reached.stderr
1 error: any use of this value will cause an error
2   --> $DIR/const_eval_limit_reached.rs:8:11
3    |
4 LL | / const X: usize = {
5 LL | |     let mut x = 0;
6 LL | |     while x != 1000 {
7    | |           ^^^^^^^^^ exceeded interpreter step limit (see `#[const_eval_limit]`)
8 LL | |
9 ...  |
10 LL | |     x
11 LL | | };
12    | |__-
13    |
14    = note: `#[deny(const_err)]` on by default
15
16 error: aborting due to previous error
17