| error: this expression will panic at runtime |
| --> $DIR/const-err2.rs:18:13 |
| LL | let a = -std::i8::MIN; |
| | ^^^^^^^^^^^^^ attempt to negate with overflow |
| note: lint level defined here |
| --> $DIR/const-err2.rs:11:9 |
| error: this expression will panic at runtime |
| --> $DIR/const-err2.rs:20:13 |
| LL | let b = 200u8 + 200u8 + 200u8; |
| | ^^^^^^^^^^^^^ attempt to add with overflow |
| error: this expression will panic at runtime |
| --> $DIR/const-err2.rs:22:13 |
| | ^^^^^^^^^ attempt to multiply with overflow |
| error: this expression will panic at runtime |
| --> $DIR/const-err2.rs:24:13 |
| LL | let d = 42u8 - (42u8 + 1); |
| | ^^^^^^^^^^^^^^^^^ attempt to subtract with overflow |
| error: index out of bounds: the len is 1 but the index is 1 |
| --> $DIR/const-err2.rs:26:14 |
| error: aborting due to 5 previous errors |