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