1 error[E0195]: lifetime parameters or bounds on method `foo` do not match the trait declaration
2 --> $DIR/impl-missing-where-clause-lifetimes-from-trait.rs:6:11
4 LL | fn foo<'a, K>(self, _: T, _: K) where T: 'a, K: 'a;
5 | ------- -- -- this bound might be missing in the impl
7 | | this bound might be missing in the impl
8 | lifetimes in impl do not match this method in trait
10 LL | fn foo<'a, K>(self, _: (), _: K) where {
11 | ^^^^^^^ lifetimes do not match method in trait
13 error[E0195]: lifetime parameters or bounds on method `foo` do not match the trait declaration
14 --> $DIR/impl-missing-where-clause-lifetimes-from-trait.rs:23:11
16 LL | fn foo<'a>(&self, state: &'a State) -> &'a T
17 | ---- lifetimes in impl do not match this method in trait
20 | -- this bound might be missing in the impl
22 LL | fn foo<'a>(&self, state: &'a State) -> &'a T {
23 | ^^^^ lifetimes do not match method in trait
25 error[E0195]: lifetime parameters or bounds on method `foo` do not match the trait declaration
26 --> $DIR/impl-missing-where-clause-lifetimes-from-trait.rs:33:11
28 LL | fn foo<'a>(&'a self) {}
29 | ---- lifetimes in impl do not match this method in trait
31 LL | fn foo<'a: 'a>(&'a self) {}
32 | ^^^^^^^^ lifetimes do not match method in trait
34 error: aborting due to 3 previous errors
36 For more information about this error, try `rustc --explain E0195`.