1 warning: not reporting region error due to nll
2 --> $DIR/ex1-return-one-existing-name-if-else-2.rs:12:16
4 LL | if x > y { x } else { y } //~ ERROR explicit lifetime
7 error[E0621]: explicit lifetime required in the type of `x`
8 --> $DIR/ex1-return-one-existing-name-if-else-2.rs:12:8
10 LL | fn foo<'a>(x: &i32, y: &'a i32) -> &'a i32 {
11 | ---- help: consider changing the type of `x` to : `&'a i32`
12 LL | if x > y { x } else { y } //~ ERROR explicit lifetime
13 | ^^^^^ lifetime `'a` required
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0621`.