]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/nll/issue-58299.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / nll / issue-58299.stderr
index aba07542d026e826b2d8589e14cc306cad81b1a8..5be4e56171c52adc333c3d12d3701118114958db 100644 (file)
@@ -6,6 +6,8 @@ LL | fn foo<'a>(x: i32) {
 ...
 LL |         A::<'a>::X..=A::<'static>::X => (),
    |         ^^^^^^^^^^ requires that `'a` must outlive `'static`
+   |
+   = help: consider replacing `'a` with `'static`
 
 error: lifetime may not live long enough
   --> $DIR/issue-58299.rs:24:27
@@ -15,6 +17,8 @@ LL | fn bar<'a>(x: i32) {
 ...
 LL |         A::<'static>::X..=A::<'a>::X => (),
    |                           ^^^^^^^^^^ requires that `'a` must outlive `'static`
+   |
+   = help: consider replacing `'a` with `'static`
 
 error: aborting due to 2 previous errors