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 previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0195`.
|