9 struct Container<T: Iterable<Item = impl Foo>> {
10 //~^ ERROR `impl Trait` not allowed
14 enum Enum<T: Iterable<Item = impl Foo>> {
15 //~^ ERROR `impl Trait` not allowed
19 union Union<T: Iterable<Item = impl Foo> + Copy> {
20 //~^ ERROR `impl Trait` not allowed
24 type Type<T: Iterable<Item = impl Foo>> = T;
25 //~^ ERROR `impl Trait` not allowed