--> $DIR/mismatched.rs:14:42
|
LL | fn foo(x: &'a u32, y: &u32) -> &'a u32 { y } //~ ERROR explicit lifetime required
- | - ^ lifetime `'a` required
- | |
- | consider changing the type of `y` to `&'a u32`
+ | ---- ^ lifetime `'a` required
+ | |
+ | help: consider changing the type of `y` to : `&'a u32`
error[E0623]: lifetime mismatch
--> $DIR/mismatched.rs:16:46