2018-05-11 14:33:37 +02:00
|
|
|
error: attempt to add with overflow
|
2018-10-11 18:02:00 +02:00
|
|
|
--> $DIR/const-eval-overflow-4.rs:23:13
|
2018-03-06 12:43:02 +01:00
|
|
|
|
|
|
|
|
|
LL | : [u32; (i8::MAX as i8 + 1i8) as usize]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
2018-05-11 14:33:37 +02:00
|
|
|
= note: #[deny(const_err)] on by default
|
2018-03-06 12:43:02 +01:00
|
|
|
|
2018-06-02 23:38:57 +02:00
|
|
|
error[E0080]: could not evaluate constant expression
|
2018-10-11 18:02:00 +02:00
|
|
|
--> $DIR/const-eval-overflow-4.rs:23:7
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-10-11 18:02:00 +02:00
|
|
|
LL | : [u32; (i8::MAX as i8 + 1i8) as usize]
|
|
|
|
|
| ^^^^^^---------------------^^^^^^^^^^
|
|
|
|
|
| |
|
|
|
|
|
| attempt to add with overflow
|
2017-12-10 22:47:55 +03:00
|
|
|
|
2018-05-11 14:33:37 +02:00
|
|
|
error: aborting due to 2 previous errors
|
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`.
|