1 The lifetime parameters of the method do not match the trait declaration.
3 Erroneous code example:
7 fn bar<'a,'b:'a>(x: &'a str, y: &'b str);
13 fn bar<'a,'b>(x: &'a str, y: &'b str) {
14 // error: lifetime parameters or bounds on method `bar`
15 // do not match the trait declaration
20 The lifetime constraint `'b` for `bar()` implementation does not match the
21 trait declaration. Ensure lifetime declarations match exactly in both trait
22 declaration and implementation. Example:
26 fn t<'a,'b:'a>(x: &'a str, y: &'b str);
32 fn t<'a,'b:'a>(x: &'a str, y: &'b str) { // ok!