]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-len-underflow-separate-spans.stderr
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[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 subtract with overflow
8    |
9    = note: `#[deny(const_err)]` on by default
10
11 error[E0080]: evaluation of constant value failed
12   --> $DIR/const-len-underflow-separate-spans.rs:11:17
13    |
14 LL |     let a: [i8; LEN] = unimplemented!();
15    |                 ^^^ referenced constant has errors
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0080`.