blob: df34d18ee83a426f98cd1f4e4b3538072f816843 [file] [log] [blame]
error[E0623]: lifetime mismatch
--> $DIR/ex1-return-one-existing-name-return-type-is-anon.rs:8:5
|
LL | fn foo<'a>(&self, x: &'a i32) -> &i32 {
| ------- ----
| |
| this parameter and the return type are declared with different lifetimes...
LL |
LL | x
| ^ ...but data from `x` is returned here
error: aborting due to previous error