Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mdbook getting started code does not work #565

Closed
tekknolagi opened this issue Jan 29, 2025 · 1 comment · Fixed by #568
Closed

mdbook getting started code does not work #565

tekknolagi opened this issue Jan 29, 2025 · 1 comment · Fixed by #568

Comments

@tekknolagi
Copy link

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%
@antiguru
Copy link
Member

Can you show your Cargo.toml file? We started releasing regularly to crates, so you could point at released versions instead of the git repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants