2023-07-19 17:28:40 +00:00
|
|
|
error[E0119]: conflicting implementations of trait `Bar` for type `&_`
|
2023-11-19 19:19:51 +00:00
|
|
|
--> $DIR/negative-coherence-considering-regions.rs:16:1
|
2023-07-19 17:28:40 +00:00
|
|
|
|
|
|
|
|
LL | impl<T> Bar for T where T: Foo {}
|
|
|
|
| ------------------------------ first implementation here
|
|
|
|
...
|
|
|
|
LL | impl<T> Bar for &T {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^ conflicting implementation for `&_`
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2023-07-19 17:28:40 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0119`.
|