@@ -2,21 +2,21 @@ warning: constant evaluation error
2
2
--> $DIR/promoted_errors.rs:14:20
3
3
|
4
4
LL | println!("{}", 0u32 - 1);
5
- | ^^^^^^^^ attempted to do overflowing math
5
+ | ^^^^^^^^ attempt to subtract with overflow
6
6
|
7
7
= note: #[warn(const_err)] on by default
8
8
9
9
warning: constant evaluation error
10
10
--> $DIR/promoted_errors.rs:14:20
11
11
|
12
12
LL | println!("{}", 0u32 - 1);
13
- | ^^^^^^^^ attempted to do overflowing math
13
+ | ^^^^^^^^ attempt to subtract with overflow
14
14
15
15
warning: constant evaluation error
16
16
--> $DIR/promoted_errors.rs:17:14
17
17
|
18
18
LL | let _x = 0u32 - 1;
19
- | ^^^^^^^^ attempted to do overflowing math
19
+ | ^^^^^^^^ attempt to subtract with overflow
20
20
21
21
warning: attempt to divide by zero
22
22
--> $DIR/promoted_errors.rs:19:20
@@ -28,7 +28,7 @@ warning: constant evaluation error
28
28
--> $DIR/promoted_errors.rs:19:20
29
29
|
30
30
LL | println!("{}", 1/(1-1));
31
- | ^^^^^^^ attempted to do overflowing math
31
+ | ^^^^^^^ attempt to divide with overflow
32
32
33
33
warning: attempt to divide by zero
34
34
--> $DIR/promoted_errors.rs:22:14
@@ -40,11 +40,11 @@ warning: constant evaluation error
40
40
--> $DIR/promoted_errors.rs:22:14
41
41
|
42
42
LL | let _x = 1/(1-1);
43
- | ^^^^^^^ attempted to do overflowing math
43
+ | ^^^^^^^ attempt to divide with overflow
44
44
45
45
warning: constant evaluation error
46
46
--> $DIR/promoted_errors.rs:25:20
47
47
|
48
48
LL | println!("{}", 1/(false as u32));
49
- | ^^^^^^^^^^^^^^^^ attempted to do overflowing math
49
+ | ^^^^^^^^^^^^^^^^ attempt to divide with overflow
50
50
0 commit comments