1 error[E0308]: mismatched types
2 --> $DIR/E0308-2.rs:9:6
4 LL | impl Eq for &dyn DynEq {}
7 = note: expected trait `PartialEq`
8 found trait `PartialEq`
9 note: the lifetime `'_` as defined on the impl at 9:13...
10 --> $DIR/E0308-2.rs:9:13
12 LL | impl Eq for &dyn DynEq {}
14 = note: ...does not necessarily outlive the static lifetime
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0308`.