@@ -22,8 +22,8 @@ error[E0308]: mismatched types
22
22
LL | assert_impl::<HasCastInTraitImpl<{ N + 1 }, { N as u128 }>>();
23
23
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `{ N as u128 }`, found `{ O as u128 }`
24
24
|
25
- = note: expected type `{ N as u128 }`
26
- found type `{ O as u128 }`
25
+ = note: expected constant `{ N as u128 }`
26
+ found constant `{ O as u128 }`
27
27
28
28
error: unconstrained generic constant
29
29
--> $DIR/abstract-const-as-cast-3.rs:20:5
@@ -49,26 +49,26 @@ error[E0308]: mismatched types
49
49
LL | assert_impl::<HasCastInTraitImpl<{ N + 1 }, { N as _ }>>();
50
50
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `{ N as _ }`, found `{ O as u128 }`
51
51
|
52
- = note: expected type `{ N as _ }`
53
- found type `{ O as u128 }`
52
+ = note: expected constant `{ N as _ }`
53
+ found constant `{ O as u128 }`
54
54
55
55
error[E0308]: mismatched types
56
56
--> $DIR/abstract-const-as-cast-3.rs:23:5
57
57
|
58
58
LL | assert_impl::<HasCastInTraitImpl<13, { 12 as u128 }>>();
59
59
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `12`, found `13`
60
60
|
61
- = note: expected type `12`
62
- found type `13`
61
+ = note: expected constant `12`
62
+ found constant `13`
63
63
64
64
error[E0308]: mismatched types
65
65
--> $DIR/abstract-const-as-cast-3.rs:25:5
66
66
|
67
67
LL | assert_impl::<HasCastInTraitImpl<14, 13>>();
68
68
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `13`, found `14`
69
69
|
70
- = note: expected type `13`
71
- found type `14`
70
+ = note: expected constant `13`
71
+ found constant `14`
72
72
73
73
error: unconstrained generic constant
74
74
--> $DIR/abstract-const-as-cast-3.rs:35:5
@@ -94,8 +94,8 @@ error[E0308]: mismatched types
94
94
LL | assert_impl::<HasCastInTraitImpl<{ N + 1 }, { N as u128 }>>();
95
95
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `{ N as u128 }`, found `{ O as u128 }`
96
96
|
97
- = note: expected type `{ N as u128 }`
98
- found type `{ O as u128 }`
97
+ = note: expected constant `{ N as u128 }`
98
+ found constant `{ O as u128 }`
99
99
100
100
error: unconstrained generic constant
101
101
--> $DIR/abstract-const-as-cast-3.rs:38:5
@@ -121,26 +121,26 @@ error[E0308]: mismatched types
121
121
LL | assert_impl::<HasCastInTraitImpl<{ N + 1 }, { N as _ }>>();
122
122
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `{ N as _ }`, found `{ O as u128 }`
123
123
|
124
- = note: expected type `{ N as _ }`
125
- found type `{ O as u128 }`
124
+ = note: expected constant `{ N as _ }`
125
+ found constant `{ O as u128 }`
126
126
127
127
error[E0308]: mismatched types
128
128
--> $DIR/abstract-const-as-cast-3.rs:41:5
129
129
|
130
130
LL | assert_impl::<HasCastInTraitImpl<13, { 12 as u128 }>>();
131
131
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `12`, found `13`
132
132
|
133
- = note: expected type `12`
134
- found type `13`
133
+ = note: expected constant `12`
134
+ found constant `13`
135
135
136
136
error[E0308]: mismatched types
137
137
--> $DIR/abstract-const-as-cast-3.rs:43:5
138
138
|
139
139
LL | assert_impl::<HasCastInTraitImpl<14, 13>>();
140
140
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `13`, found `14`
141
141
|
142
- = note: expected type `13`
143
- found type `14`
142
+ = note: expected constant `13`
143
+ found constant `14`
144
144
145
145
error: aborting due to 12 previous errors
146
146
0 commit comments