1 `impl Trait` types cannot appear nested in the
2 generic arguments of other `impl Trait` types.
4 Example of erroneous code:
7 trait MyGenericTrait<T> {}
10 fn foo(bar: impl MyGenericTrait<impl MyInnerTrait>) {}
13 Type parameters for `impl Trait` types must be
14 explicitly defined as named generic parameters:
17 trait MyGenericTrait<T> {}
20 fn foo<T: MyInnerTrait>(bar: impl MyGenericTrait<T>) {}