blob: 7c86e20fe64d6d288214e0d9a099dcd8f4c20ab3 [file] [log] [blame]
error[E0623]: lifetime mismatch
--> $DIR/project-fn-ret-invariant.rs:49:19
|
LL | fn baz<'a,'b>(x: Type<'a>, y: Type<'b>) -> (Type<'a>, Type<'b>) {
| -------- --------------------
| |
| this parameter and the return type are declared with different lifetimes...
...
LL | let b = bar(f, y); //[oneuse]~ ERROR 49:19: 49:20: lifetime mismatch [E0623]
| ^ ...but data from `x` is returned here
error: aborting due to previous error
For more information about this error, try `rustc --explain E0623`.