]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/negative-reasoning.stderr
Rollup merge of #98441 - calebzulawski:simd_as, r=oli-obk
[rust.git] / src / test / ui / impl-trait / negative-reasoning.stderr
1 error[E0119]: conflicting implementations of trait `AnotherTrait` for type `D<OpaqueType>`
2   --> $DIR/negative-reasoning.rs:19:1
3    |
4 LL | impl<T: std::fmt::Debug> AnotherTrait for T {}
5    | ------------------------------------------- first implementation here
6 ...
7 LL | impl AnotherTrait for D<OpaqueType> {
8    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `D<OpaqueType>`
9    |
10    = note: upstream crates may add a new impl of trait `std::fmt::Debug` for type `OpaqueType` in future versions
11
12 error: cannot implement trait on type alias impl trait
13   --> $DIR/negative-reasoning.rs:19:25
14    |
15 LL | impl AnotherTrait for D<OpaqueType> {
16    |                         ^^^^^^^^^^
17    |
18 note: type alias impl trait defined here
19   --> $DIR/negative-reasoning.rs:7:19
20    |
21 LL | type OpaqueType = impl OpaqueTrait;
22    |                   ^^^^^^^^^^^^^^^^
23
24 error: aborting due to 2 previous errors
25
26 For more information about this error, try `rustc --explain E0119`.