We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25870a0 commit c4a6f84Copy full SHA for c4a6f84
src/test/compile-fail/consts/const-err3.rs
@@ -7,13 +7,13 @@ fn black_box<T>(_: T) {
7
8
fn main() {
9
let b = 200u8 + 200u8 + 200u8;
10
- //~^ ERROR const_err
+ //~^ ERROR overflow
11
let c = 200u8 * 4;
12
13
let d = 42u8 - (42u8 + 1);
14
15
let _e = [5u8][1];
16
+ //~^ ERROR panic
17
black_box(b);
18
black_box(c);
19
black_box(d);
0 commit comments