]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/nll/issue-55401.nll.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / nll / issue-55401.nll.stderr
index 4f797f26a1a7c4e16c1d4d0ac9179e0c5874243d..df320aa0844add1238c5f6c604fc3ec007ca0bc6 100644 (file)
@@ -6,6 +6,8 @@ LL | fn static_to_a_to_static_through_ref_in_tuple<'a>(x: &'a u32) -> &'static u
 LL |     let (ref y, _z): (&'a u32, u32) = (&22, 44);
 LL |     *y
    |     ^^ returning this value requires that `'a` must outlive `'static`
+   |
+   = help: consider replacing `'a` with `'static`
 
 error: aborting due to previous error