@@ -24,6 +24,11 @@ LL | assert_impl::<HasCastInTraitImpl<{ N + 1 }, { N as u128 }>>();
24
24
|
25
25
= note: expected constant `{ N as u128 }`
26
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
@@ -51,6 +56,11 @@ LL | assert_impl::<HasCastInTraitImpl<{ N + 1 }, { N as _ }>>();
51
56
|
52
57
= note: expected constant `{ N as _ }`
53
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
@@ -60,6 +70,11 @@ LL | assert_impl::<HasCastInTraitImpl<13, { 12 as u128 }>>();
60
70
|
61
71
= note: expected constant `12`
62
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
@@ -69,6 +84,11 @@ LL | assert_impl::<HasCastInTraitImpl<14, 13>>();
69
84
|
70
85
= note: expected constant `13`
71
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
@@ -96,6 +116,11 @@ LL | assert_impl::<HasCastInTraitImpl<{ N + 1 }, { N as u128 }>>();
96
116
|
97
117
= note: expected constant `{ N as u128 }`
98
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
@@ -123,6 +148,11 @@ LL | assert_impl::<HasCastInTraitImpl<{ N + 1 }, { N as _ }>>();
123
148
|
124
149
= note: expected constant `{ N as _ }`
125
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
@@ -132,6 +162,11 @@ LL | assert_impl::<HasCastInTraitImpl<13, { 12 as u128 }>>();
132
162
|
133
163
= note: expected constant `12`
134
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
@@ -141,6 +176,11 @@ LL | assert_impl::<HasCastInTraitImpl<14, 13>>();
141
176
|
142
177
= note: expected constant `13`
143
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