1 error[E0562]: `impl Trait` not allowed outside of function and method return types
2 --> $DIR/issue-47715.rs:9:37
4 LL | struct Container<T: Iterable<Item = impl Foo>> {
7 error[E0562]: `impl Trait` not allowed outside of function and method return types
8 --> $DIR/issue-47715.rs:14:30
10 LL | enum Enum<T: Iterable<Item = impl Foo>> {
13 error[E0562]: `impl Trait` not allowed outside of function and method return types
14 --> $DIR/issue-47715.rs:19:32
16 LL | union Union<T: Iterable<Item = impl Foo> + Copy> {
19 error[E0562]: `impl Trait` not allowed outside of function and method return types
20 --> $DIR/issue-47715.rs:24:30
22 LL | type Type<T: Iterable<Item = impl Foo>> = T;
25 error: aborting due to 4 previous errors
27 For more information about this error, try `rustc --explain E0562`.