summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-alias-impl-trait/impl_trait_for_same_tait.stderr
blob: aaf75cc3db97c48316aff9408b4ad11a53214318 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
error[E0119]: conflicting implementations of trait `Bop` for type `Bar<()>`
  --> $DIR/impl_trait_for_same_tait.rs:17:1
   |
LL | impl Bop for Bar<()> {}
   | -------------------- first implementation here
...
LL | impl Bop for Bar<i32> {}
   | ^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `Bar<()>`

error[E0119]: conflicting implementations of trait `Bop` for type `Bar<()>`
  --> $DIR/impl_trait_for_same_tait.rs:26:1
   |
LL | impl Bop for Bar<()> {}
   | -------------------- first implementation here
...
LL | impl Bop for Barr {}
   | ^^^^^^^^^^^^^^^^^ conflicting implementation for `Bar<()>`

error[E0119]: conflicting implementations of trait `Bop` for type `Bar<()>`
  --> $DIR/impl_trait_for_same_tait.rs:30:1
   |
LL | impl Bop for Bar<()> {}
   | -------------------- first implementation here
...
LL | impl Bop for i32 {}
   | ^^^^^^^^^^^^^^^^ conflicting implementation for `Bar<()>`

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0119`.