@@ -16,59 +16,47 @@ error: attempt to divide by zero
16
16
LL | println!("{}", 1/(1-1));
17
17
| ^^^^^^^
18
18
19
- error: this expression will panic at runtime
19
+ error: reaching this expression at runtime will panic or abort
20
20
--> $DIR/promoted_errors.rs:9:20
21
21
|
22
22
LL | println!("{}", 1/(1-1));
23
23
| ^^^^^^^ attempt to divide by zero
24
24
25
25
error: attempt to divide by zero
26
- --> $DIR/promoted_errors.rs:13 :14
26
+ --> $DIR/promoted_errors.rs:12 :14
27
27
|
28
28
LL | let _x = 1/(1-1);
29
29
| ^^^^^^^
30
30
31
31
error: this expression will panic at runtime
32
- --> $DIR/promoted_errors.rs:13 :14
32
+ --> $DIR/promoted_errors.rs:12 :14
33
33
|
34
34
LL | let _x = 1/(1-1);
35
35
| ^^^^^^^ attempt to divide by zero
36
36
37
37
error: attempt to divide by zero
38
- --> $DIR/promoted_errors.rs:16 :20
38
+ --> $DIR/promoted_errors.rs:15 :20
39
39
|
40
40
LL | println!("{}", 1/(false as u32));
41
41
| ^^^^^^^^^^^^^^^^
42
42
43
- error: this expression will panic at runtime
44
- --> $DIR/promoted_errors.rs:16 :20
43
+ error: reaching this expression at runtime will panic or abort
44
+ --> $DIR/promoted_errors.rs:15 :20
45
45
|
46
46
LL | println!("{}", 1/(false as u32));
47
47
| ^^^^^^^^^^^^^^^^ attempt to divide by zero
48
48
49
49
error: attempt to divide by zero
50
- --> $DIR/promoted_errors.rs:20 :14
50
+ --> $DIR/promoted_errors.rs:18 :14
51
51
|
52
52
LL | let _x = 1/(false as u32);
53
53
| ^^^^^^^^^^^^^^^^
54
54
55
55
error: this expression will panic at runtime
56
- --> $DIR/promoted_errors.rs:20 :14
56
+ --> $DIR/promoted_errors.rs:18 :14
57
57
|
58
58
LL | let _x = 1/(false as u32);
59
59
| ^^^^^^^^^^^^^^^^ attempt to divide by zero
60
60
61
- error: reaching this expression at runtime will panic or abort
62
- --> $DIR/promoted_errors.rs:16:20
63
- |
64
- LL | println!("{}", 1/(false as u32));
65
- | ^^^^^^^^^^^^^^^^ attempt to divide by zero
66
-
67
- error: reaching this expression at runtime will panic or abort
68
- --> $DIR/promoted_errors.rs:9:20
69
- |
70
- LL | println!("{}", 1/(1-1));
71
- | ^^^^^^^ attempt to divide by zero
72
-
73
- error: aborting due to 11 previous errors
61
+ error: aborting due to 9 previous errors
74
62
0 commit comments