]> git.proxmox.com Git - rustc.git/blame - src/test/ui/nll/issue-55401.base.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / nll / issue-55401.base.stderr
CommitLineData
48663c56 1error[E0312]: lifetime of reference outlives lifetime of borrowed content...
04454e1e 2 --> $DIR/issue-55401.rs:7:5
0731742a 3 |
532ac7d7 4LL | *y
48663c56
XL
5 | ^^
6 |
7 = note: ...the reference is valid for the static lifetime...
c295e0f8 8note: ...but the borrowed content is only valid for the lifetime `'a` as defined here
04454e1e 9 --> $DIR/issue-55401.rs:5:47
48663c56
XL
10 |
11LL | fn static_to_a_to_static_through_ref_in_tuple<'a>(x: &'a u32) -> &'static u32 {
12 | ^^
0731742a
XL
13
14error: aborting due to previous error
15
e1599b0c 16For more information about this error, try `rustc --explain E0312`.