]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/impl-header-lifetime-elision/assoc-type.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / impl-header-lifetime-elision / assoc-type.stderr
index 492ca872187e0ed829a391e8018137bd64aaf953..c4f27e0b80e41d5ba8a5b1424e6d39889482ec8a 100644 (file)
@@ -1,15 +1,15 @@
-error[E0106]: missing lifetime specifier
+error[E0637]: `&` without an explicit lifetime name cannot be used here
   --> $DIR/assoc-type.rs:11:19
    |
 LL |     type Output = &i32;
-   |                   ^ expected lifetime parameter
+   |                   ^ explicit lifetime name needed here
 
-error[E0106]: missing lifetime specifier
+error[E0637]: `'_` cannot be used here
   --> $DIR/assoc-type.rs:16:20
    |
 LL |     type Output = &'_ i32;
-   |                    ^^ expected lifetime parameter
+   |                    ^^ `'_` is a reserved lifetime name
 
 error: aborting due to 2 previous errors
 
-For more information about this error, try `rustc --explain E0106`.
+For more information about this error, try `rustc --explain E0637`.