]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/alias/issue-83613.stderr
Rollup merge of #100953 - joshtriplett:write-docs, r=Mark-Simulacrum
[rust.git] / src / test / ui / traits / alias / issue-83613.stderr
1 error[E0119]: conflicting implementations of trait `AnotherTrait` for type `OpaqueType`
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 `OpaqueType`
8
9 error: cannot implement trait on type alias impl trait
10   --> $DIR/issue-83613.rs:10:23
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`.