@@ -17,43 +17,43 @@ LL | const NEG: i32 = -i32::MIN + T::NEG;
17
17
= note: `#[deny(const_err)]` on by default
18
18
19
19
error: this arithmetic operation will overflow
20
- --> $DIR/issue-69020.rs:23 :22
20
+ --> $DIR/issue-69020.rs:24 :22
21
21
|
22
22
LL | const ADD: i32 = (i32::MAX+1) + T::ADD;
23
23
| ^^^^^^^^^^^^ attempt to add with overflow
24
24
25
25
error: any use of this value will cause an error
26
- --> $DIR/issue-69020.rs:23 :22
26
+ --> $DIR/issue-69020.rs:24 :22
27
27
|
28
28
LL | const ADD: i32 = (i32::MAX+1) + T::ADD;
29
29
| -----------------^^^^^^^^^^^^----------
30
30
| |
31
31
| attempt to add with overflow
32
32
33
33
error: this operation will panic at runtime
34
- --> $DIR/issue-69020.rs:25 :22
34
+ --> $DIR/issue-69020.rs:27 :22
35
35
|
36
36
LL | const DIV: i32 = (1/0) + T::DIV;
37
37
| ^^^^^ attempt to divide by zero
38
38
|
39
39
= note: `#[deny(unconditional_panic)]` on by default
40
40
41
41
error: any use of this value will cause an error
42
- --> $DIR/issue-69020.rs:25 :22
42
+ --> $DIR/issue-69020.rs:27 :22
43
43
|
44
44
LL | const DIV: i32 = (1/0) + T::DIV;
45
45
| -----------------^^^^^----------
46
46
| |
47
47
| attempt to divide by zero
48
48
49
49
error: this operation will panic at runtime
50
- --> $DIR/issue-69020.rs:27 :22
50
+ --> $DIR/issue-69020.rs:30 :22
51
51
|
52
52
LL | const OOB: i32 = [1][1] + T::OOB;
53
53
| ^^^^^^ index out of bounds: the len is 1 but the index is 1
54
54
55
55
error: any use of this value will cause an error
56
- --> $DIR/issue-69020.rs:27 :22
56
+ --> $DIR/issue-69020.rs:30 :22
57
57
|
58
58
LL | const OOB: i32 = [1][1] + T::OOB;
59
59
| -----------------^^^^^^----------
0 commit comments