2022-07-13 19:28:11 -05:00
|
|
|
error[E0284]: type annotations needed
|
2021-08-06 08:20:59 -05:00
|
|
|
--> $DIR/parent_generics_of_encoding_impl_trait.rs:9:5
|
|
|
|
|
|
|
|
|
LL | generics_of_parent_impl_trait::foo([()]);
|
2022-07-13 19:28:11 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `foo`
|
2021-08-06 08:20:59 -05:00
|
|
|
|
|
2021-07-31 11:26:55 -05:00
|
|
|
note: required by a bound in `foo`
|
|
|
|
--> $DIR/auxiliary/generics_of_parent_impl_trait.rs:6:48
|
2021-08-06 08:20:59 -05:00
|
|
|
|
|
|
|
|
LL | pub fn foo<const N: usize>(foo: impl Into<[(); N + 1]>) {
|
2021-07-31 11:26:55 -05:00
|
|
|
| ^^^^^ required by this bound in `foo`
|
2021-08-06 08:20:59 -05:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2021-08-06 08:20:59 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0284`.
|