]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/nll/user-annotations/constant-in-expr-trait-item-1.nll.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / nll / user-annotations / constant-in-expr-trait-item-1.nll.stderr
index ea0fcb6d634cd9820ca0d975bf4bd7c9c8380e47..5f3212eb9aa349ea5ba3218ef54c5c7945b223c3 100644 (file)
@@ -5,6 +5,8 @@ LL | fn foo<'a>(_: &'a u32) -> &'static u32 {
    |        -- lifetime `'a` defined here
 LL |     <() as Foo<'a>>::C
    |     ^^^^^^^^^^^^^^^^^^ returning this value requires that `'a` must outlive `'static`
+   |
+   = help: consider replacing `'a` with `'static`
 
 error: aborting due to previous error