@@ -4,7 +4,7 @@ error[E0308]: mismatched types
4
4
LL | x_usize > -1_isize;
5
5
| ^^^^^^^^ expected `usize`, found `isize`
6
6
|
7
- note: `-1_isize` can never fit into `usize`
7
+ note: `-1_isize` cannot fit into type `usize`
8
8
--> $DIR/numeric-cast-no-fix.rs:10:15
9
9
|
10
10
LL | x_usize > -1_isize;
@@ -16,7 +16,7 @@ error[E0308]: mismatched types
16
16
LL | x_u128 > -1_isize;
17
17
| ^^^^^^^^ expected `u128`, found `isize`
18
18
|
19
- note: `-1_isize` can never fit into `u128`
19
+ note: `-1_isize` cannot fit into type `u128`
20
20
--> $DIR/numeric-cast-no-fix.rs:12:14
21
21
|
22
22
LL | x_u128 > -1_isize;
@@ -28,7 +28,7 @@ error[E0308]: mismatched types
28
28
LL | x_u64 > -1_isize;
29
29
| ^^^^^^^^ expected `u64`, found `isize`
30
30
|
31
- note: `-1_isize` can never fit into `u64`
31
+ note: `-1_isize` cannot fit into type `u64`
32
32
--> $DIR/numeric-cast-no-fix.rs:14:13
33
33
|
34
34
LL | x_u64 > -1_isize;
@@ -40,7 +40,7 @@ error[E0308]: mismatched types
40
40
LL | x_u32 > -1_isize;
41
41
| ^^^^^^^^ expected `u32`, found `isize`
42
42
|
43
- note: `-1_isize` can never fit into `u32`
43
+ note: `-1_isize` cannot fit into type `u32`
44
44
--> $DIR/numeric-cast-no-fix.rs:16:13
45
45
|
46
46
LL | x_u32 > -1_isize;
@@ -52,7 +52,7 @@ error[E0308]: mismatched types
52
52
LL | x_u16 > -1_isize;
53
53
| ^^^^^^^^ expected `u16`, found `isize`
54
54
|
55
- note: `-1_isize` can never fit into `u16`
55
+ note: `-1_isize` cannot fit into type `u16`
56
56
--> $DIR/numeric-cast-no-fix.rs:18:13
57
57
|
58
58
LL | x_u16 > -1_isize;
0 commit comments