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