]> git.proxmox.com Git - rustc.git/blob - tests/ui/trait-bounds/impl-missing-where-clause-lifetimes-from-trait.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / trait-bounds / impl-missing-where-clause-lifetimes-from-trait.stderr
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
3 |
4 LL | 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 ...
10 LL | fn foo<'a, K>(self, _: (), _: K) where {
11 | ^^^^^^^ lifetimes do not match method in trait
12
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
15 |
16 LL | fn foo<'a>(&self, state: &'a State) -> &'a T
17 | ---- lifetimes in impl do not match this method in trait
18 LL | where
19 LL | T: 'a;
20 | -- this bound might be missing in the impl
21 ...
22 LL | fn foo<'a>(&self, state: &'a State) -> &'a T {
23 | ^^^^ lifetimes do not match method in trait
24
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
27 |
28 LL | fn foo<'a>(&'a self) {}
29 | ---- lifetimes in impl do not match this method in trait
30 ...
31 LL | fn foo<'a: 'a>(&'a self) {}
32 | ^^^^^^^^ lifetimes do not match method in trait
33
34 error: aborting due to 3 previous errors
35
36 For more information about this error, try `rustc --explain E0195`.