]>
Commit | Line | Data |
---|---|---|
ba9703b0 | 1 | error: any use of this value will cause an error |
f035d41b | 2 | --> $DIR/const_eval_limit_reached.rs:6:5 |
74b04a01 | 3 | | |
f035d41b XL |
4 | LL | / const X: usize = { |
5 | LL | | let mut x = 0; | |
6 | LL | | while x != 1000 { | |
7 | | |_____^ | |
8 | LL | || | |
5869c6ff | 9 | LL | || |
f035d41b XL |
10 | LL | || x += 1; |
11 | LL | || } | |
12 | | ||_____^ exceeded interpreter step limit (see `#[const_eval_limit]`) | |
13 | LL | | | |
14 | LL | | x | |
15 | LL | | }; | |
16 | | |__- | |
74b04a01 | 17 | | |
ba9703b0 | 18 | = note: `#[deny(const_err)]` on by default |
5869c6ff XL |
19 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
20 | = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800> | |
ba9703b0 XL |
21 | |
22 | error: aborting due to previous error | |
74b04a01 | 23 |