]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-26217.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-26217.stderr
index f5c641be2d47c3126ca959929ce93a0d48db7a2e..c7601caacdca3fb4e56bc147a45e82e0a05fb767 100644 (file)
@@ -1,9 +1,10 @@
-error[E0477]: the type `&'a i32` does not fulfill the required lifetime
+error: lifetime may not live long enough
   --> $DIR/issue-26217.rs:4:5
    |
+LL | fn bar<'a>() {
+   |        -- lifetime `'a` defined here
 LL |     foo::<&'a i32>();
-   |     ^^^^^^^^^^^^^^
+   |     ^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0477`.