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-4.rs:11:13
|
2018-03-06 12:43:02 +01:00
|
|
|
|
|
|
|
|
|
LL | : [u32; (i8::MAX as i8 + 1i8) as usize]
|
2025-06-07 11:32:09 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ evaluation of `A_I8_T::{constant#0}` failed here
|
2017-12-10 22:47:55 +03:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2017-12-10 22:47:55 +03:00
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0080`.
|