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 | |