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
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
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`.
|