]> git.lizzy.rs Git - rust.git/blob - src/test/ui/in-band-lifetimes/mismatched_trait.stderr
Do not suggest using a const parameter when there are bounds on an unused type parameter
[rust.git] / src / test / ui / in-band-lifetimes / mismatched_trait.stderr
1 error[E0621]: explicit lifetime required in the type of `y`
2   --> $DIR/mismatched_trait.rs:6:9
3    |
4 LL |     fn baz(&self, x: &'a u32, y: &u32) -> &'a u32 {
5    |                                  ---- help: add explicit lifetime `'a` to the type of `y`: `&'a u32`
6 LL |         y
7    |         ^ lifetime `'a` required
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0621`.