1 warning: not reporting region error due to nll
2 --> $DIR/ex1-return-one-existing-name-self-is-anon.rs:18:30
4 LL | if true { x } else { self } //~ ERROR lifetime mismatch
7 error: unsatisfied lifetime constraints
8 --> $DIR/ex1-return-one-existing-name-self-is-anon.rs:18:9
10 LL | fn foo<'a>(&self, x: &'a Foo) -> &'a Foo {
11 | -- - let's call the lifetime of this reference `'1`
13 | lifetime `'a` defined here
15 LL | if true { x } else { self } //~ ERROR lifetime mismatch
16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'1` must outlive `'a`
18 error: aborting due to previous error