]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0308-2.stderr
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
[rust.git] / src / test / ui / error-codes / E0308-2.stderr
1 error[E0308]: mismatched types
2   --> $DIR/E0308-2.rs:9:6
3    |
4 LL | impl Eq for &dyn DynEq {}
5    |      ^^ lifetime mismatch
6    |
7    = note: expected trait `<&dyn DynEq as PartialEq>`
8               found trait `<&(dyn DynEq + 'static) as PartialEq>`
9 note: the lifetime `'_` as defined here...
10   --> $DIR/E0308-2.rs:9:13
11    |
12 LL | impl Eq for &dyn DynEq {}
13    |             ^
14    = note: ...does not necessarily outlive the static lifetime
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0308`.