]> git.lizzy.rs Git - rust.git/blob - src/test/ui/in-band-lifetimes/mismatched_trait.nll.stderr
Omit 'missing IndexMut impl' suggestion when IndexMut is implemented.
[rust.git] / src / test / ui / in-band-lifetimes / mismatched_trait.nll.stderr
1 warning: not reporting region error due to nll
2   --> $DIR/mismatched_trait.rs:16:9
3    |
4 LL |         y //~ ERROR explicit lifetime required
5    |         ^
6
7 error[E0621]: explicit lifetime required in the type of `y`
8   --> $DIR/mismatched_trait.rs:16:9
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
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0621`.