]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-len-underflow-separate-spans.stderr
Do not suggest `let_else` if no bindings would be introduced
[rust.git] / src / test / ui / consts / const-len-underflow-separate-spans.stderr
1 error: any use of this value will cause an error
2   --> $DIR/const-len-underflow-separate-spans.rs:7:20
3    |
4 LL | const LEN: usize = ONE - TWO;
5    | -------------------^^^^^^^^^-
6    |                    |
7    |                    attempt to compute `1_usize - 2_usize`, which would overflow
8    |
9    = note: `#[deny(const_err)]` on by default
10    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
11    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
12
13 error[E0080]: evaluation of constant value failed
14   --> $DIR/const-len-underflow-separate-spans.rs:12:17
15    |
16 LL |     let a: [i8; LEN] = unimplemented!();
17    |                 ^^^ referenced constant has errors
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0080`.