1 error: cannot implement trait on type alias impl trait
2 --> $DIR/coherence-with-generator.rs:14:24
4 LL | impl Trait for Wrapper<OpaqueGenerator> {}
7 note: type alias impl trait defined here
8 --> $DIR/coherence-with-generator.rs:3:24
10 LL | type OpaqueGenerator = impl Sized;
13 error[E0119]: conflicting implementations of trait `Trait` for type `Wrapper<OpaqueGenerator>`
14 --> $DIR/coherence-with-generator.rs:16:1
16 LL | impl Trait for Wrapper<OpaqueGenerator> {}
17 | --------------------------------------- first implementation here
19 LL | impl<T: Sync> Trait for Wrapper<T> {}
20 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `Wrapper<OpaqueGenerator>`
22 error: aborting due to 2 previous errors
24 For more information about this error, try `rustc --explain E0119`.