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