ITADN

the trait bound is not satisfied error

#1827Openlukebarone 创建于 2026-06-05
bug
L
lukebaronecommented
**Describe the bug** Cannot install via `cargo install ncspot` on Ubuntu 24.04: ```nolang error[E0277]: the trait bound `vergen::feature::build::Build: vergen_lib::entries::Add` is not satisfied --> /home/luke/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/librespot-core-0.8.0/build.rs:16:27 | 16 | .add_instructions(&build)? | ^^^^^^ the trait `vergen_lib::entries::Add` is not implemented for `vergen::feature::build::Build` | note: there are multiple different versions of crate `vergen_lib` in the dependency graph --> /home/luke/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/vergen-lib-0.1.6/src/entries.rs:45:1 | 45 | pub trait Add { | ^^^^^^^^^^^^^ this is the expected trait | ::: /home/luke/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/vergen-lib-9.1.0/src/entries.rs:45:1 | 45 | pub trait Add { | ------------- this is the found trait = help: you can use `cargo tree` to explore your dependency tree help: the trait `vergen_lib::entries::Add` is implemented for `Gitcl` --> /home/luke/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/vergen-gitcl-1.0.8/src/gitcl/mod.rs:910:1 | 910 | impl AddEntries for Gitcl { | ^^^^^^^^^^^^^^^^^^^^^^^^^ = note: required for the cast from `&vergen::feature::build::Build` to `&dyn vergen_lib::entries::Add` For more information about this error, try `rustc --explain E0277`. error: could not compile `librespot-core` (build script) due to 1 previous error warning: build failed, waiting for other jobs to finish... error: failed to compile `ncspot v1.3.4`, intermediate artifacts can be found at `/tmp/cargo-installvEdhPD`. To reuse those artifacts with a future compilation, set the environment variable `CARGO_BUILD_BUILD_DIR` to that path. ``` **To Reproduce** Steps to reproduce the behavior: 1. Run `cargo install ncspot` **Expected behavior** NCSpot to be installed **Screenshots** N/A **System (please complete the following information):** - OS: Ubuntu 24.04 LTS on WSL2 - Terminal: Windows Terminal - Version: 1.3.4 - Installed from: cargo
0 条评论