]>
Commit | Line | Data |
---|---|---|
48663c56 | 1 | error[E0312]: lifetime of reference outlives lifetime of borrowed content... |
04454e1e | 2 | --> $DIR/issue-55401.rs:7:5 |
0731742a | 3 | | |
532ac7d7 | 4 | LL | *y |
48663c56 XL |
5 | | ^^ |
6 | | | |
7 | = note: ...the reference is valid for the static lifetime... | |
c295e0f8 | 8 | note: ...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 | | |
11 | LL | fn static_to_a_to_static_through_ref_in_tuple<'a>(x: &'a u32) -> &'static u32 { | |
12 | | ^^ | |
0731742a XL |
13 | |
14 | error: aborting due to previous error | |
15 | ||
e1599b0c | 16 | For more information about this error, try `rustc --explain E0312`. |