1 error[E0312]: lifetime of reference outlives lifetime of borrowed content...
2 --> $DIR/ex1-return-one-existing-name-if-else-using-impl.rs:21:20
4 21 | if x > y { x } else { y }
7 note: ...the reference is valid for the lifetime 'a as defined on the method body at 19:5...
8 --> $DIR/ex1-return-one-existing-name-if-else-using-impl.rs:19:5
10 19 | / fn foo<'a>(x: &i32, y: &'a i32) -> &'a i32 {
12 21 | | if x > y { x } else { y }
16 note: ...but the borrowed content is only valid for the anonymous lifetime #1 defined on the method body at 19:5
17 --> $DIR/ex1-return-one-existing-name-if-else-using-impl.rs:19:5
19 19 | / fn foo<'a>(x: &i32, y: &'a i32) -> &'a i32 {
21 21 | | if x > y { x } else { y }
26 error: aborting due to previous error