@@ -17,43 +17,43 @@ LL | const NEG: i32 = -i32::MIN + T::NEG;
1717 = note: `#[deny(const_err)]` on by default
1818
1919error: this arithmetic operation will overflow
20- --> $DIR/issue-69020.rs:23 :22
20+ --> $DIR/issue-69020.rs:24 :22
2121 |
2222LL | const ADD: i32 = (i32::MAX+1) + T::ADD;
2323 | ^^^^^^^^^^^^ attempt to add with overflow
2424
2525error: any use of this value will cause an error
26- --> $DIR/issue-69020.rs:23 :22
26+ --> $DIR/issue-69020.rs:24 :22
2727 |
2828LL | const ADD: i32 = (i32::MAX+1) + T::ADD;
2929 | -----------------^^^^^^^^^^^^----------
3030 | |
3131 | attempt to add with overflow
3232
3333error: this operation will panic at runtime
34- --> $DIR/issue-69020.rs:25 :22
34+ --> $DIR/issue-69020.rs:27 :22
3535 |
3636LL | const DIV: i32 = (1/0) + T::DIV;
3737 | ^^^^^ attempt to divide by zero
3838 |
3939 = note: `#[deny(unconditional_panic)]` on by default
4040
4141error: any use of this value will cause an error
42- --> $DIR/issue-69020.rs:25 :22
42+ --> $DIR/issue-69020.rs:27 :22
4343 |
4444LL | const DIV: i32 = (1/0) + T::DIV;
4545 | -----------------^^^^^----------
4646 | |
4747 | attempt to divide by zero
4848
4949error: this operation will panic at runtime
50- --> $DIR/issue-69020.rs:27 :22
50+ --> $DIR/issue-69020.rs:30 :22
5151 |
5252LL | const OOB: i32 = [1][1] + T::OOB;
5353 | ^^^^^^ index out of bounds: the len is 1 but the index is 1
5454
5555error: any use of this value will cause an error
56- --> $DIR/issue-69020.rs:27 :22
56+ --> $DIR/issue-69020.rs:30 :22
5757 |
5858LL | const OOB: i32 = [1][1] + T::OOB;
5959 | -----------------^^^^^^----------
0 commit comments