]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-len-underflow-subspans.stderr
Do not suggest `let_else` if no bindings would be introduced
[rust.git] / src / test / ui / consts / const-len-underflow-subspans.stderr
1 error[E0080]: evaluation of constant value failed
2   --> $DIR/const-len-underflow-subspans.rs:8:17
3    |
4 LL |     let a: [i8; ONE - TWO] = unimplemented!();
5    |                 ^^^^^^^^^ attempt to compute `1_usize - 2_usize`, which would overflow
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0080`.