]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/parent_generics_of_encoding_impl_trait.stderr
Move generic error message to separate branches
[rust.git] / src / test / ui / const-generics / parent_generics_of_encoding_impl_trait.stderr
1 error[E0284]: type annotations needed: cannot satisfy `the constant `foo::{opaque#0}::{constant#0}` can be evaluated`
2   --> $DIR/parent_generics_of_encoding_impl_trait.rs:9:5
3    |
4 LL |     generics_of_parent_impl_trait::foo([()]);
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot satisfy `the constant `foo::{opaque#0}::{constant#0}` can be evaluated`
6    |
7 note: required by a bound in `foo`
8   --> $DIR/auxiliary/generics_of_parent_impl_trait.rs:6:48
9    |
10 LL | pub fn foo<const N: usize>(foo: impl Into<[(); N + 1]>) {
11    |                                                ^^^^^ required by this bound in `foo`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0284`.