]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/lub-if.nll.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / lub-if.nll.stderr
index 832688f5162b346d28b19dccb86d64cd92d09575..1ef479fcd4bc0566cec444bfb3c10a452e68a2e4 100644 (file)
@@ -6,6 +6,8 @@ LL | pub fn opt_str2<'a>(maybestr: &'a Option<String>) -> &'static str {
 ...
 LL |         s
    |         ^ returning this value requires that `'a` must outlive `'static`
+   |
+   = help: consider replacing `'a` with `'static`
 
 error: lifetime may not live long enough
   --> $DIR/lub-if.rs:35:9
@@ -15,6 +17,8 @@ LL | pub fn opt_str3<'a>(maybestr: &'a Option<String>) -> &'static str {
 ...
 LL |         s
    |         ^ returning this value requires that `'a` must outlive `'static`
+   |
+   = help: consider replacing `'a` with `'static`
 
 error: aborting due to 2 previous errors