@@ -22,8 +22,13 @@ 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
+ note: required by a bound in `use_trait_impl::assert_impl`
28
+ --> $DIR/abstract-const-as-cast-3.rs:14:23
29
+ |
30
+ LL | fn assert_impl<T: Trait>() {}
31
+ | ^^^^^ required by this bound in `use_trait_impl::assert_impl`
27
32
28
33
error: unconstrained generic constant
29
34
--> $DIR/abstract-const-as-cast-3.rs:20:19
@@ -49,26 +54,41 @@ error[E0308]: mismatched types
49
54
LL | assert_impl::<HasCastInTraitImpl<{ N + 1 }, { N as _ }>>();
50
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `{ N as _ }`, found `{ O as u128 }`
51
56
|
52
- = note: expected type `{ N as _ }`
53
- found type `{ O as u128 }`
57
+ = note: expected constant `{ N as _ }`
58
+ found constant `{ O as u128 }`
59
+ note: required by a bound in `use_trait_impl::assert_impl`
60
+ --> $DIR/abstract-const-as-cast-3.rs:14:23
61
+ |
62
+ LL | fn assert_impl<T: Trait>() {}
63
+ | ^^^^^ required by this bound in `use_trait_impl::assert_impl`
54
64
55
65
error[E0308]: mismatched types
56
66
--> $DIR/abstract-const-as-cast-3.rs:23:5
57
67
|
58
68
LL | assert_impl::<HasCastInTraitImpl<13, { 12 as u128 }>>();
59
69
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `12`, found `13`
60
70
|
61
- = note: expected type `12`
62
- found type `13`
71
+ = note: expected constant `12`
72
+ found constant `13`
73
+ note: required by a bound in `use_trait_impl::assert_impl`
74
+ --> $DIR/abstract-const-as-cast-3.rs:14:23
75
+ |
76
+ LL | fn assert_impl<T: Trait>() {}
77
+ | ^^^^^ required by this bound in `use_trait_impl::assert_impl`
63
78
64
79
error[E0308]: mismatched types
65
80
--> $DIR/abstract-const-as-cast-3.rs:25:5
66
81
|
67
82
LL | assert_impl::<HasCastInTraitImpl<14, 13>>();
68
83
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `13`, found `14`
69
84
|
70
- = note: expected type `13`
71
- found type `14`
85
+ = note: expected constant `13`
86
+ found constant `14`
87
+ note: required by a bound in `use_trait_impl::assert_impl`
88
+ --> $DIR/abstract-const-as-cast-3.rs:14:23
89
+ |
90
+ LL | fn assert_impl<T: Trait>() {}
91
+ | ^^^^^ required by this bound in `use_trait_impl::assert_impl`
72
92
73
93
error: unconstrained generic constant
74
94
--> $DIR/abstract-const-as-cast-3.rs:35:19
@@ -94,8 +114,13 @@ error[E0308]: mismatched types
94
114
LL | assert_impl::<HasCastInTraitImpl<{ N + 1 }, { N as u128 }>>();
95
115
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `{ N as u128 }`, found `{ O as u128 }`
96
116
|
97
- = note: expected type `{ N as u128 }`
98
- found type `{ O as u128 }`
117
+ = note: expected constant `{ N as u128 }`
118
+ found constant `{ O as u128 }`
119
+ note: required by a bound in `use_trait_impl_2::assert_impl`
120
+ --> $DIR/abstract-const-as-cast-3.rs:32:23
121
+ |
122
+ LL | fn assert_impl<T: Trait>() {}
123
+ | ^^^^^ required by this bound in `use_trait_impl_2::assert_impl`
99
124
100
125
error: unconstrained generic constant
101
126
--> $DIR/abstract-const-as-cast-3.rs:38:19
@@ -121,26 +146,41 @@ error[E0308]: mismatched types
121
146
LL | assert_impl::<HasCastInTraitImpl<{ N + 1 }, { N as _ }>>();
122
147
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `{ N as _ }`, found `{ O as u128 }`
123
148
|
124
- = note: expected type `{ N as _ }`
125
- found type `{ O as u128 }`
149
+ = note: expected constant `{ N as _ }`
150
+ found constant `{ O as u128 }`
151
+ note: required by a bound in `use_trait_impl_2::assert_impl`
152
+ --> $DIR/abstract-const-as-cast-3.rs:32:23
153
+ |
154
+ LL | fn assert_impl<T: Trait>() {}
155
+ | ^^^^^ required by this bound in `use_trait_impl_2::assert_impl`
126
156
127
157
error[E0308]: mismatched types
128
158
--> $DIR/abstract-const-as-cast-3.rs:41:5
129
159
|
130
160
LL | assert_impl::<HasCastInTraitImpl<13, { 12 as u128 }>>();
131
161
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `12`, found `13`
132
162
|
133
- = note: expected type `12`
134
- found type `13`
163
+ = note: expected constant `12`
164
+ found constant `13`
165
+ note: required by a bound in `use_trait_impl_2::assert_impl`
166
+ --> $DIR/abstract-const-as-cast-3.rs:32:23
167
+ |
168
+ LL | fn assert_impl<T: Trait>() {}
169
+ | ^^^^^ required by this bound in `use_trait_impl_2::assert_impl`
135
170
136
171
error[E0308]: mismatched types
137
172
--> $DIR/abstract-const-as-cast-3.rs:43:5
138
173
|
139
174
LL | assert_impl::<HasCastInTraitImpl<14, 13>>();
140
175
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `13`, found `14`
141
176
|
142
- = note: expected type `13`
143
- found type `14`
177
+ = note: expected constant `13`
178
+ found constant `14`
179
+ note: required by a bound in `use_trait_impl_2::assert_impl`
180
+ --> $DIR/abstract-const-as-cast-3.rs:32:23
181
+ |
182
+ LL | fn assert_impl<T: Trait>() {}
183
+ | ^^^^^ required by this bound in `use_trait_impl_2::assert_impl`
144
184
145
185
error: aborting due to 12 previous errors
146
186
0 commit comments