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