]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-return-type-is-anon.nll.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / lifetimes / lifetime-errors / ex1-return-one-existing-name-return-type-is-anon.nll.stderr
index 15ee58574ecaa375c1d45421e162b1a5d8e09592..11e7fa96d7ee947b5f329dde7bb5ffef96b6b620 100644 (file)
@@ -7,7 +7,7 @@ LL |   fn foo<'a>(&self, x: &'a i32) -> &i32 {
    |          lifetime `'a` defined here
 LL | 
 LL |     x
-   |     ^ method was supposed to return data with lifetime `'1` but it is returning data with lifetime `'a`
+   |     ^ associated function was supposed to return data with lifetime `'1` but it is returning data with lifetime `'a`
 
 error: aborting due to previous error