]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-len-underflow-separate-spans.stderr
Unify the const folding errors
[rust.git] / src / test / ui / const-len-underflow-separate-spans.stderr
1 warning: attempt to subtract with overflow
2   --> $DIR/const-len-underflow-separate-spans.rs:17:20
3    |
4 LL | const LEN: usize = ONE - TWO;
5    |                    ^^^^^^^^^
6    |
7    = note: #[warn(const_err)] on by default
8
9 error[E0080]: constant evaluation error
10   --> $DIR/const-len-underflow-separate-spans.rs:17:20
11    |
12 LL | const LEN: usize = ONE - TWO;
13    |                    ^^^^^^^^^ attempt to subtract with overflow
14
15 error[E0080]: constant evaluation error
16   --> $DIR/const-len-underflow-separate-spans.rs:22:17
17    |
18 LL |     let a: [i8; LEN] = unimplemented!();
19    |                 ^^^ referenced constant has errors
20
21 error: aborting due to 2 previous errors
22
23 If you want more information on this error, try using "rustc --explain E0080"