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