1 Your method's lifetime parameters do not match the trait declaration.
2 Erroneous code example:
6 fn bar<'a,'b:'a>(x: &'a str, y: &'b str);
12 fn bar<'a,'b>(x: &'a str, y: &'b str) {
13 // error: lifetime parameters or bounds on method `bar`
14 // do not match the trait declaration
19 The lifetime constraint `'b` for bar() implementation does not match the
20 trait declaration. Ensure lifetime declarations match exactly in both trait
21 declaration and implementation. Example:
25 fn t<'a,'b:'a>(x: &'a str, y: &'b str);
31 fn t<'a,'b:'a>(x: &'a str, y: &'b str) { // ok!