@@ -2,7 +2,7 @@ error[E0308]: mismatched types
2
2
--> $DIR/coerce-to-bang.rs:6:17
3
3
|
4
4
LL | foo(return, 22, 44);
5
- | ^^ expected !, found integral variable
5
+ | ^^ expected !, found integer
6
6
|
7
7
= note: expected type `!`
8
8
found type `{integer}`
@@ -11,7 +11,7 @@ error[E0308]: mismatched types
11
11
--> $DIR/coerce-to-bang.rs:18:13
12
12
|
13
13
LL | foo(22, 44, return); //~ ERROR mismatched types
14
- | ^^ expected !, found integral variable
14
+ | ^^ expected !, found integer
15
15
|
16
16
= note: expected type `!`
17
17
found type `{integer}`
@@ -20,7 +20,7 @@ error[E0308]: mismatched types
20
20
--> $DIR/coerce-to-bang.rs:26:12
21
21
|
22
22
LL | foo(a, b, c); // ... and hence a reference to `a` is expected to diverge.
23
- | ^ expected !, found integral variable
23
+ | ^ expected !, found integer
24
24
|
25
25
= note: expected type `!`
26
26
found type `{integer}`
@@ -29,7 +29,7 @@ error[E0308]: mismatched types
29
29
--> $DIR/coerce-to-bang.rs:36:12
30
30
|
31
31
LL | foo(a, b, c); //~ ERROR mismatched types
32
- | ^ expected !, found integral variable
32
+ | ^ expected !, found integer
33
33
|
34
34
= note: expected type `!`
35
35
found type `{integer}`
@@ -38,7 +38,7 @@ error[E0308]: mismatched types
38
38
--> $DIR/coerce-to-bang.rs:45:12
39
39
|
40
40
LL | foo(a, b, c); //~ ERROR mismatched types
41
- | ^ expected !, found integral variable
41
+ | ^ expected !, found integer
42
42
|
43
43
= note: expected type `!`
44
44
found type `{integer}`
@@ -47,7 +47,7 @@ error[E0308]: mismatched types
47
47
--> $DIR/coerce-to-bang.rs:50:21
48
48
|
49
49
LL | let x: [!; 2] = [return, 22]; //~ ERROR mismatched types
50
- | ^^^^^^^^^^^^ expected !, found integral variable
50
+ | ^^^^^^^^^^^^ expected !, found integer
51
51
|
52
52
= note: expected type `[!; 2]`
53
53
found type `[{integer}; 2]`
@@ -56,7 +56,7 @@ error[E0308]: mismatched types
56
56
--> $DIR/coerce-to-bang.rs:55:22
57
57
|
58
58
LL | let x: [!; 2] = [22, return]; //~ ERROR mismatched types
59
- | ^^ expected !, found integral variable
59
+ | ^^ expected !, found integer
60
60
|
61
61
= note: expected type `!`
62
62
found type `{integer}`
@@ -65,7 +65,7 @@ error[E0308]: mismatched types
65
65
--> $DIR/coerce-to-bang.rs:60:37
66
66
|
67
67
LL | let x: (usize, !, usize) = (22, 44, 66); //~ ERROR mismatched types
68
- | ^^ expected !, found integral variable
68
+ | ^^ expected !, found integer
69
69
|
70
70
= note: expected type `!`
71
71
found type `{integer}`
@@ -74,7 +74,7 @@ error[E0308]: mismatched types
74
74
--> $DIR/coerce-to-bang.rs:65:41
75
75
|
76
76
LL | let x: (usize, !, usize) = (return, 44, 66);
77
- | ^^ expected !, found integral variable
77
+ | ^^ expected !, found integer
78
78
|
79
79
= note: expected type `!`
80
80
found type `{integer}`
@@ -83,7 +83,7 @@ error[E0308]: mismatched types
83
83
--> $DIR/coerce-to-bang.rs:76:37
84
84
|
85
85
LL | let x: (usize, !, usize) = (22, 44, return); //~ ERROR mismatched types
86
- | ^^ expected !, found integral variable
86
+ | ^^ expected !, found integer
87
87
|
88
88
= note: expected type `!`
89
89
found type `{integer}`
0 commit comments