2020-07-24 00:21:28 +00:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/E0308-2.rs:9:6
|
|
|
|
|
|
|
|
|
LL | impl Eq for &dyn DynEq {}
|
|
|
|
| ^^ lifetime mismatch
|
|
|
|
|
|
2021-10-07 16:00:15 +00:00
|
|
|
= note: expected trait `<&dyn DynEq as PartialEq>`
|
|
|
|
found trait `<&(dyn DynEq + 'static) as PartialEq>`
|
2021-10-05 12:11:51 +00:00
|
|
|
note: the lifetime `'_` as defined here...
|
2020-07-24 00:21:28 +00:00
|
|
|
--> $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`.
|