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