2022-09-21 06:05:20 -05:00
|
|
|
error[E0080]: evaluation of constant value failed
|
2019-03-10 19:28:52 -05:00
|
|
|
--> $DIR/const-len-underflow-separate-spans.rs:7:20
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | const LEN: usize = ONE - TWO;
|
2022-09-21 06:05:20 -05:00
|
|
|
| ^^^^^^^^^ attempt to compute `1_usize - 2_usize`, which would overflow
|
2018-03-05 03:21:11 -06:00
|
|
|
|
2022-11-15 05:06:20 -06:00
|
|
|
note: erroneous constant used
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/const-len-underflow-separate-spans.rs:11:17
|
2018-06-02 20:01:06 -05:00
|
|
|
|
|
|
|
|
LL | let a: [i8; LEN] = unimplemented!();
|
2022-11-15 05:06:20 -06:00
|
|
|
| ^^^
|
2017-12-10 13:47:55 -06:00
|
|
|
|
2022-11-15 05:06:20 -06:00
|
|
|
error: aborting due to previous error
|
2017-12-10 13:47:55 -06:00
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0080`.
|