Skip to content

mdbook getting started code does not work #565

@tekknolagi

Description

@tekknolagi

I added the two git repos to my Cargo.toml (no Rust code from the mdbook yet) and ran cargo run:

error[E0599]: the function or associated item `new` exists for struct `HistoryReplayer<'_, _, _, _, _>`, but its trait bounds were not satisfied
   --> /Users/emacs/.cargo/git/checkouts/differential-dataflow-d065d23d797aa027/b084ced/src/operators/reduce.rs:474:76
    |
474 |                         let mut thinker = history_replay::HistoryReplayer::new();
    |                                                                            ^^^ function or associated item cannot be called on `HistoryReplayer<'_, _, _, _, _>` due to unsatisfied trait bounds
...
684 |     pub struct HistoryReplayer<'a, C1, C2, C3, V>
    |     --------------------------------------------- function or associated item `new` not found for this struct because it doesn't satisfy `_: PerKeyCompute<'_, _, _, _, _>`
    |
note: the following trait bounds were not satisfied:
      `<<_ as cursor::Cursor>::Val<'b> as IntoOwned<'b>>::Owned = _`
      `<_ as cursor::Cursor>::Val<'b>: IntoOwned<'b>`
   --> /Users/emacs/.cargo/git/checkouts/differential-dataflow-d065d23d797aa027/b084ced/src/operators/reduce.rs:710:31
    |
704 |     impl<'a, C1, C2, C3, V> PerKeyCompute<'a, C1, C2, C3, V> for HistoryReplayer<'a, C1, C2, C3, V>
    |                             --------------------------------     ----------------------------------
...
710 |         for<'b> C2::Val<'b> : IntoOwned<'b, Owned = V>,
    |                               ^^^^^^^^^^^^^^^^^^^^^^^^
    |                               |             |
    |                               |             unsatisfied trait bound introduced here
    |                               unsatisfied trait bound introduced here

For more information about this error, try `rustc --explain E0599`.
error: could not compile `differential-dataflow` (lib) due to 1 previous error
plum% cargo --version
cargo 1.77.2 (e52e36006 2024-03-26)
plum% rustc --version
rustc 1.77.2 (25ef9e3d8 2024-04-09)
plum%

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions