]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-55401.stderr
fix merge conflicts
[rust.git] / src / test / ui / nll / issue-55401.stderr
1 error[E0312]: lifetime of reference outlives lifetime of borrowed content...
2   --> $DIR/issue-55401.rs:3:5
3    |
4 LL |     *y
5    |     ^^
6    |
7    = note: ...the reference is valid for the static lifetime...
8 note: ...but the borrowed content is only valid for the lifetime 'a as defined on the function body at 1:47
9   --> $DIR/issue-55401.rs:1:47
10    |
11 LL | fn static_to_a_to_static_through_ref_in_tuple<'a>(x: &'a u32) -> &'static u32 {
12    |                                               ^^
13
14 error: aborting due to previous error
15