2020-07-23 19:21:28 -05:00
|
|
|
error[E0308]: mismatched types
|
2023-01-12 14:15:00 -06:00
|
|
|
--> $DIR/E0308-2.rs:9:13
|
2020-07-23 19:21:28 -05:00
|
|
|
|
|
|
|
|
LL | impl Eq for &dyn DynEq {}
|
2023-01-12 14:15:00 -06:00
|
|
|
| ^^^^^^^^^^ lifetime mismatch
|
2020-07-23 19:21:28 -05:00
|
|
|
|
|
2021-10-07 11:00:15 -05:00
|
|
|
= note: expected trait `<&dyn DynEq as PartialEq>`
|
|
|
|
found trait `<&(dyn DynEq + 'static) as PartialEq>`
|
2022-05-12 14:25:38 -05:00
|
|
|
note: the anonymous lifetime as defined here...
|
2020-07-23 19:21:28 -05: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`.
|