]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/impl-header-lifetime-elision/assoc-type.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / impl-header-lifetime-elision / assoc-type.rs
index 44c46e444d66db7805e9ba6429a30309a156605b..b0089a37aa05fc1771469babced75326d4a86aee 100644 (file)
@@ -9,12 +9,12 @@ trait MyTrait {
 
 impl MyTrait for &i32 {
     type Output = &i32;
-    //~^ ERROR missing lifetime specifier
+    //~^ ERROR `&` without an explicit lifetime name cannot be used here
 }
 
 impl MyTrait for &u32 {
     type Output = &'_ i32;
-    //~^ ERROR missing lifetime specifier
+    //~^ ERROR `'_` cannot be used here
 }
 
 // This is what you have to do: