1 warning: not reporting region error due to nll
2 --> $DIR/mismatched_trait.rs:16:9
4 LL | y //~ ERROR explicit lifetime required
7 error[E0621]: explicit lifetime required in the type of `y`
8 --> $DIR/mismatched_trait.rs:16:9
10 LL | fn baz(&self, x: &'a u32, y: &u32) -> &'a u32 {
11 | ---- help: add explicit lifetime `'a` to the type of `y`: `&'a u32`
12 LL | y //~ ERROR explicit lifetime required
13 | ^ lifetime `'a` required
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0621`.