]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/generic-associated-types/gat-trait-path-generic-type-arg.rs
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / generic-associated-types / gat-trait-path-generic-type-arg.rs
index 246659a268ac933d07359093c05b0acfdbdb4a4a..dbf7e02aeafccdb3d34859afab4397f225dd451e 100644 (file)
@@ -7,9 +7,10 @@ fn identity<'a>(t: &'a Self::F<'a>) -> &'a Self::F<'a> { t }
 }
 
 impl <T, T1> Foo for T {
+    //~^ ERROR: the type parameter `T1` is not constrained
     type F<T1> = &[u8];
       //~^ ERROR: the name `T1` is already used for
-      //~| ERROR: missing lifetime specifier
+      //~| ERROR: `&` without an explicit lifetime name cannot be used here
 }
 
 fn main() {}