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