This commit is contained in:
Ellen 2021-08-06 15:17:21 +01:00
parent 9a5fc0d911
commit 8ff2eccd80

View file

@ -4,7 +4,7 @@ error[E0284]: type annotations needed: cannot satisfy `the constant `foo::{opaqu
LL | generics_of_parent_impl_trait::foo([()]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot satisfy `the constant `foo::{opaque#0}::{constant#0}` can be evaluated`
|
::: $DIR/auxiliary/generics_of_parent_impl_trait.rs:5:48
::: $DIR/auxiliary/generics_of_parent_impl_trait.rs:6:48
|
LL | pub fn foo<const N: usize>(foo: impl Into<[(); N + 1]>) {
| ----- required by this bound in `foo`