]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic/generic-lifetime-trait-impl.stderr
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / generic / generic-lifetime-trait-impl.stderr
1 error[E0195]: lifetime parameters or bounds on method `bar` do not match the trait declaration
2   --> $DIR/generic-lifetime-trait-impl.rs:19:11
3    |
4 LL |     fn bar<'b, T: Bar<'b>>(self) -> &'b str;
5    |           ---------------- lifetimes in impl do not match this method in trait
6 ...
7 LL |     fn bar<T: Bar<'a>>(self) -> &'a str { panic!() }
8    |           ^^^^^^^^^^^^ lifetimes do not match method in trait
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0195`.