https://delta.io logo
m

Michael Angerman

06/11/2023, 2:28 PM
I am trying to run the rust example basic_operations and I get this error
Copy code
Compiling deltalake v0.13.0 (/Users/ma/j/tmp09/delta-rs/rust)
error[E0700]: hidden type for `impl futures::Future<Output = Result<Vec<action::Add>, errors::DeltaTableError>>` captures lifetime that does not appear in bounds
   --> rust/src/operations/write.rs:231:28
    |
231 |   ) -> DeltaResult<Vec<Add>> {
    |  ____________________________^
232 | |     let invariants = snapshot
233 | |         .current_metadata()
234 | |         .and_then(|meta| meta.schema.get_invariants().ok())
...   |
283 | |         .collect::<Vec<_>>())
284 | | }
    | |_^
    |
    = note: hidden type `[async fn body@rust/src/operations/write.rs:231:28: 284:2]` captures lifetime '_#21r