]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-len-underflow-subspans.stderr
860716c1f3855167af2bcc392a430eab69669d4a
[rust.git] / src / test / ui / consts / const-len-underflow-subspans.stderr
1 error: attempt to subtract with overflow
2   --> $DIR/const-len-underflow-subspans.rs:18:17
3    |
4 LL |     let a: [i8; ONE - TWO] = unimplemented!();
5    |                 ^^^^^^^^^
6    |
7    = note: #[deny(const_err)] on by default
8
9 error[E0080]: could not evaluate constant expression
10   --> $DIR/const-len-underflow-subspans.rs:18:12
11    |
12 LL |     let a: [i8; ONE - TWO] = unimplemented!();
13    |            ^^^^^---------^
14    |                 |
15    |                 attempt to subtract with overflow
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0080`.