2018-03-06 12:43:02 +01:00
|
|
|
warning: attempt to add with overflow
|
|
|
|
|
--> $DIR/const-eval-overflow-4.rs:23:13
|
|
|
|
|
|
|
|
|
|
|
LL | : [u32; (i8::MAX as i8 + 1i8) as usize]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: #[warn(const_err)] on by default
|
|
|
|
|
|
2017-12-10 22:47:55 +03:00
|
|
|
error[E0080]: constant evaluation error
|
|
|
|
|
--> $DIR/const-eval-overflow-4.rs:23:13
|
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | : [u32; (i8::MAX as i8 + 1i8) as usize]
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ attempt to add with overflow
|
|
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
2018-02-19 21:40:25 +01:00
|
|
|
If you want more information on this error, try using "rustc --explain E0080"
|