]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/generic-associated-types/elided-in-expr-position.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / elided-in-expr-position.stderr
index 9263f3d67e3d2f28f2c944e6dde8938e384835b0..b395a1cfd8a62c6afdc0be95c5e3d3e8fd8da104 100644 (file)
@@ -11,7 +11,7 @@ LL |     type Assoc<'a> where Self: 'a;
    |          ^^^^^ --
 help: add missing lifetime argument
    |
-LL |     fn g(&self) -> Self::Assoc<'_>;
+LL |     fn g(&self) -> Self::Assoc<'a>;
    |                          ~~~~~~~~~
 
 error[E0107]: missing generics for associated type `Trait::Assoc`
@@ -27,7 +27,7 @@ LL |     type Assoc<'a> where Self: 'a;
    |          ^^^^^ --
 help: add missing lifetime argument
    |
-LL |     fn g(&self) -> Self::Assoc<'_> {
+LL |     fn g(&self) -> Self::Assoc<'a> {
    |                          ~~~~~~~~~
 
 error: aborting due to 2 previous errors