rust/tests/ui/generics/generic-lifetime-trait-impl.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
521 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0195]: lifetime parameters or bounds on method `bar` do not match the trait declaration
2018-12-25 09:56:47 -06:00
--> $DIR/generic-lifetime-trait-impl.rs:19:11
2018-08-08 07:28:26 -05:00
|
LL | fn bar<'b, T: Bar<'b>>(self) -> &'b str;
| ---------------- lifetimes in impl do not match this method in trait
...
2019-03-09 06:03:44 -06:00
LL | fn bar<T: Bar<'a>>(self) -> &'a str { panic!() }
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^^ lifetimes do not match method in trait
error: aborting due to 1 previous error
2018-08-08 07:28:26 -05:00
For more information about this error, try `rustc --explain E0195`.