2025-05-28 10:29:08 +00:00
|
|
|
error[E0080]: attempt to compute `i8::MAX + 1_i8`, which would overflow
|
2020-10-24 19:21:40 -04:00
|
|
|
--> $DIR/const-eval-overflow-3.rs:18:11
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
|
LL | = [0; (i8::MAX + 1) as usize];
|
2025-06-07 11:32:09 +02:00
|
|
|
| ^^^^^^^^^^^^^ evaluation of `A_I8_I::{constant#1}` failed here
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2020-04-12 07:16:38 +03:00
|
|
|
For more information about this error, try `rustc --explain E0080`.
|