rust/tests/ui/impl-trait/in-trait/signature-mismatch.failure.stderr

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

15 lines
472 B
Plaintext
Raw Normal View History

2023-08-04 18:54:14 -05:00
error[E0623]: lifetime mismatch
2023-09-01 23:02:11 -05:00
--> $DIR/signature-mismatch.rs:79:10
|
2023-08-04 18:54:14 -05:00
LL | &'a self,
| -------- this parameter and the return type are declared with different lifetimes...
...
LL | ) -> impl Future<Output = Vec<u8>> {
2023-08-04 18:54:14 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| ...but data from `buff` is returned here
error: aborting due to 1 previous error
2023-08-04 18:54:14 -05:00
For more information about this error, try `rustc --explain E0623`.