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

Cargo test fails on 0.2.1 #4

Open
kvark opened this issue Dec 28, 2017 · 1 comment
Open

Cargo test fails on 0.2.1 #4

kvark opened this issue Dec 28, 2017 · 1 comment

Comments

@kvark
Copy link

kvark commented Dec 28, 2017

[kvark@carbon semver-trick-0.2.1]$ cargo test
    Updating registry `https://github.com/rust-lang/crates.io-index`
 Downloading semver-trick v0.3.0
   Compiling semver-trick v0.3.0
   Compiling semver-trick v0.2.1 (file:///home/kvark/Code/semver-trick/semver-trick-0.2.1)
    Finished dev [unoptimized + debuginfo] target(s) in 0.68 secs
     Running target/debug/deps/semver_trick-d5e748efa739c001

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

   Doc-tests semver-trick
error[E0465]: multiple rlib candidates for `semver_trick` found
 --> /home/kvark/Code/semver-trick/semver-trick-0.2.1/src/lib.rs:1:1
  |
1 | extern crate semver_trick;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
note: candidate #1: /home/kvark/Code/semver-trick/semver-trick-0.2.1/target/debug/deps/libsemver_trick-515b54276962818c.rlib
 --> /home/kvark/Code/semver-trick/semver-trick-0.2.1/src/lib.rs:1:1
  |
1 | extern crate semver_trick;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^
note: candidate #2: /home/kvark/Code/semver-trick/semver-trick-0.2.1/target/debug/deps/libsemver_trick-da9a29f272f1dd19.rlib
 --> /home/kvark/Code/semver-trick/semver-trick-0.2.1/src/lib.rs:1:1
  |
1 | extern crate semver_trick;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0463]: can't find crate for `semver_trick`
 --> /home/kvark/Code/semver-trick/semver-trick-0.2.1/src/lib.rs:1:1
  |
1 | extern crate semver_trick;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to 2 previous errors

thread '<unnamed>' panicked at 'Box<Any>', /checkout/src/librustc_errors/lib.rs:525:8
note: Run with `RUST_BACKTRACE=1` for a backtrace.
error: test failed, to rerun pass '--doc'
tesaguri added a commit to tesaguri/oauth1-request-rs that referenced this issue Sep 5, 2019
This is because the tests are incompatible with dtolnay's trick.
See also dtolnay/semver-trick#4.
@Kixunil
Copy link

Kixunil commented Sep 6, 2024

FTR the test fails but build doesn't.

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

No branches or pull requests

2 participants