@@ -4,7 +4,6 @@ error: unconstrained generic constant
4
4
LL | assert_impl::<HasCastInTraitImpl<{ N + 1 }, { N as u128 }>>();
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
- = help: try adding a `where` bound using this expression: `where [(); { O as u128 }]:`
8
7
note: required for `HasCastInTraitImpl<{ N + 1 }, { N as u128 }>` to implement `Trait`
9
8
--> $DIR/abstract-const-as-cast-3.rs:8:22
10
9
|
@@ -15,6 +14,10 @@ note: required by a bound in `use_trait_impl::assert_impl`
15
14
|
16
15
LL | fn assert_impl<T: Trait>() {}
17
16
| ^^^^^ required by this bound in `assert_impl`
17
+ help: try adding a `where` bound
18
+ |
19
+ LL | EvaluatableU128<{N as u128}>:, [(); { O as u128 } as usize]: {
20
+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18
21
19
22
error[E0308]: mismatched types
20
23
--> $DIR/abstract-const-as-cast-3.rs:17:5
@@ -36,7 +39,6 @@ error: unconstrained generic constant
36
39
LL | assert_impl::<HasCastInTraitImpl<{ N + 1 }, { N as _ }>>();
37
40
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38
41
|
39
- = help: try adding a `where` bound using this expression: `where [(); { O as u128 }]:`
40
42
note: required for `HasCastInTraitImpl<{ N + 1 }, { N as _ }>` to implement `Trait`
41
43
--> $DIR/abstract-const-as-cast-3.rs:8:22
42
44
|
@@ -47,6 +49,10 @@ note: required by a bound in `use_trait_impl::assert_impl`
47
49
|
48
50
LL | fn assert_impl<T: Trait>() {}
49
51
| ^^^^^ required by this bound in `assert_impl`
52
+ help: try adding a `where` bound
53
+ |
54
+ LL | EvaluatableU128<{N as u128}>:, [(); { O as u128 } as usize]: {
55
+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
50
56
51
57
error[E0308]: mismatched types
52
58
--> $DIR/abstract-const-as-cast-3.rs:20:5
@@ -96,7 +102,6 @@ error: unconstrained generic constant
96
102
LL | assert_impl::<HasCastInTraitImpl<{ N + 1 }, { N as u128 }>>();
97
103
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
98
104
|
99
- = help: try adding a `where` bound using this expression: `where [(); { O as u128 }]:`
100
105
note: required for `HasCastInTraitImpl<{ N + 1 }, { N as u128 }>` to implement `Trait`
101
106
--> $DIR/abstract-const-as-cast-3.rs:8:22
102
107
|
@@ -107,6 +112,10 @@ note: required by a bound in `use_trait_impl_2::assert_impl`
107
112
|
108
113
LL | fn assert_impl<T: Trait>() {}
109
114
| ^^^^^ required by this bound in `assert_impl`
115
+ help: try adding a `where` bound
116
+ |
117
+ LL | EvaluatableU128<{N as _}>:, [(); { O as u128 } as usize]: {
118
+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
110
119
111
120
error[E0308]: mismatched types
112
121
--> $DIR/abstract-const-as-cast-3.rs:35:5
@@ -128,7 +137,6 @@ error: unconstrained generic constant
128
137
LL | assert_impl::<HasCastInTraitImpl<{ N + 1 }, { N as _ }>>();
129
138
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
130
139
|
131
- = help: try adding a `where` bound using this expression: `where [(); { O as u128 }]:`
132
140
note: required for `HasCastInTraitImpl<{ N + 1 }, { N as _ }>` to implement `Trait`
133
141
--> $DIR/abstract-const-as-cast-3.rs:8:22
134
142
|
@@ -139,6 +147,10 @@ note: required by a bound in `use_trait_impl_2::assert_impl`
139
147
|
140
148
LL | fn assert_impl<T: Trait>() {}
141
149
| ^^^^^ required by this bound in `assert_impl`
150
+ help: try adding a `where` bound
151
+ |
152
+ LL | EvaluatableU128<{N as _}>:, [(); { O as u128 } as usize]: {
153
+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
142
154
143
155
error[E0308]: mismatched types
144
156
--> $DIR/abstract-const-as-cast-3.rs:38:5
0 commit comments