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