2020-07-23 20:21:28 -04:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/E0308-2.rs:9:6
|
|
|
|
|
|
|
|
|
LL | impl Eq for &dyn DynEq {}
|
|
|
|
| ^^ lifetime mismatch
|
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= note: expected trait `PartialEq`
|
|
|
|
found trait `PartialEq`
|
2020-07-23 20:21:28 -04:00
|
|
|
note: the lifetime `'_` as defined on the impl at 9:13...
|
|
|
|
--> $DIR/E0308-2.rs:9:13
|
|
|
|
|
|
|
|
|
LL | impl Eq for &dyn DynEq {}
|
|
|
|
| ^
|
|
|
|
= note: ...does not necessarily outlive the static lifetime
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|