]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const_limit/const_eval_limit_reached.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / consts / const_limit / const_eval_limit_reached.stderr
CommitLineData
ba9703b0 1error: any use of this value will cause an error
f035d41b 2 --> $DIR/const_eval_limit_reached.rs:6:5
74b04a01 3 |
f035d41b
XL
4LL | / const X: usize = {
5LL | | let mut x = 0;
6LL | | while x != 1000 {
7 | |_____^
8LL | ||
5869c6ff 9LL | ||
f035d41b
XL
10LL | || x += 1;
11LL | || }
12 | ||_____^ exceeded interpreter step limit (see `#[const_eval_limit]`)
13LL | |
14LL | | x
15LL | | };
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
22error: aborting due to previous error
74b04a01 23