fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[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 25error[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 35 36For more information about this error, try `rustc --explain E0195`.