]> git.proxmox.com Git - rustc.git/blame - src/test/ui/nll/issue-50716.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / nll / issue-50716.stderr
CommitLineData
48663c56
XL
1error[E0308]: mismatched types
2 --> $DIR/issue-50716.rs:14:9
8faf50e0 3 |
532ac7d7 4LL | let _x = *s;
48663c56
XL
5 | ^^ lifetime mismatch
6 |
c295e0f8
XL
7 = note: expected type `<<&'a T as A>::X as Sized>`
8 found type `<<&'static T as A>::X as Sized>`
9note: the lifetime `'a` as defined here...
48663c56
XL
10 --> $DIR/issue-50716.rs:9:8
11 |
12LL | fn foo<'a, T: 'static>(s: Box<<&'a T as A>::X>)
13 | ^^
14 = note: ...does not necessarily outlive the static lifetime
8faf50e0
XL
15
16error: aborting due to previous error
17
48663c56 18For more information about this error, try `rustc --explain E0308`.