rust/src/test/ui/error-codes/E0308-2.stderr

19 lines
516 B
Plaintext
Raw Normal View History

error[E0308]: mismatched types
--> $DIR/E0308-2.rs:9:6
|
LL | impl Eq for &dyn DynEq {}
| ^^ lifetime mismatch
|
= note: expected trait `PartialEq`
found trait `PartialEq`
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`.