]> git.proxmox.com Git - rustc.git/blame - src/test/ui/error-codes/E0308-2.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / error-codes / E0308-2.stderr
CommitLineData
3dfed10e
XL
1error[E0308]: mismatched types
2 --> $DIR/E0308-2.rs:9:6
3 |
4LL | impl Eq for &dyn DynEq {}
5 | ^^ lifetime mismatch
6 |
c295e0f8
XL
7 = note: expected trait `<&dyn DynEq as PartialEq>`
8 found trait `<&(dyn DynEq + 'static) as PartialEq>`
923072b8 9note: the anonymous lifetime as defined here...
3dfed10e
XL
10 --> $DIR/E0308-2.rs:9:13
11 |
12LL | impl Eq for &dyn DynEq {}
13 | ^
14 = note: ...does not necessarily outlive the static lifetime
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0308`.