blob: e26cb22163f1e78e61936d5ceee56af440f41bb2 [file] [log] [blame]
Esteban Kübere8021652022-11-28 08:03:571error[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
3 |
4LL | fn foo<'a, K>(self, _: T, _: K) where T: 'a, K: 'a;
5 | ------- -- -- this bound might be missing in the impl
6 | | |
7 | | this bound might be missing in the impl
8 | lifetimes in impl do not match this method in trait
9...
10LL | fn foo<'a, K>(self, _: (), _: K) where {
11 | ^^^^^^^ lifetimes do not match method in trait
12
13error[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
15 |
16LL | fn foo<'a>(&self, state: &'a State) -> &'a T
17 | ---- lifetimes in impl do not match this method in trait
18LL | where
19LL | T: 'a;
20 | -- this bound might be missing in the impl
21...
22LL | fn foo<'a>(&self, state: &'a State) -> &'a T {
23 | ^^^^ lifetimes do not match method in trait
24
Esteban Küber9ffd0862022-11-28 22:04:4625error[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
27 |
28LL | fn foo<'a>(&'a self) {}
29 | ---- lifetimes in impl do not match this method in trait
30...
31LL | fn foo<'a: 'a>(&'a self) {}
32 | ^^^^^^^^ lifetimes do not match method in trait
33
34error: aborting due to 3 previous errors
Esteban Kübere8021652022-11-28 08:03:5735
36For more information about this error, try `rustc --explain E0195`.