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