os-rust/tests/ui/coherence/coherence-negative-outlives-lifetimes.stock.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
587 B
Text
Raw Normal View History

2022-02-10 11:55:23 -03:00
error[E0119]: conflicting implementations of trait `MyTrait<'_>` for type `&_`
--> $DIR/coherence-negative-outlives-lifetimes.rs:18:1
2022-02-10 11:55:23 -03:00
|
LL | impl<'a, T: MyPredicate<'a>> MyTrait<'a> for T {}
| ---------------------------------------------- first implementation here
LL | impl<'a, T> MyTrait<'a> for &'a T {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `&_`
2024-09-21 07:02:51 +00:00
|
= note: downstream crates may implement trait `MyPredicate<'_>` for type `&_`
2022-02-10 11:55:23 -03:00
error: aborting due to 1 previous error
2022-02-10 11:55:23 -03:00
For more information about this error, try `rustc --explain E0119`.