]>
Commit | Line | Data |
---|---|---|
a1dfa0c6 | 1 | error[E0080]: evaluation of constant value failed |
0731742a | 2 | --> $DIR/const-eval-overflow-4.rs:13:13 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | : [u32; (i8::MAX as i8 + 1i8) as usize] |
1b1a35ee | 5 | | ^^^^^^^^^^^^^^^^^^^^^ attempt to compute `i8::MAX + 1_i8`, which would overflow |
ff7c6d11 | 6 | |
a1dfa0c6 | 7 | error: aborting due to previous error |
ff7c6d11 | 8 | |
0531ce1d | 9 | For more information about this error, try `rustc --explain E0080`. |