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

doctest is failing #34

Open
ignatenkobrain opened this issue Apr 26, 2018 · 1 comment
Open

doctest is failing #34

ignatenkobrain opened this issue Apr 26, 2018 · 1 comment

Comments

@ignatenkobrain
Copy link
Contributor

   Doc-tests sha1
     Running `/usr/bin/rustdoc --test /builddir/build/BUILD/sha1-0.6.0/src/lib.rs --crate-name sha1 -L dependency=/builddir/build/BUILD/sha1-0.6.0/target/release/deps -L dependency=/builddir/build/BUILD/sha1-0.6.0/target/release/deps --extern rand=/builddir/build/BUILD/sha1-0.6.0/target/release/deps/librand-9c9dadd4ba24c308.rlib --extern openssl=/builddir/build/BUILD/sha1-0.6.0/target/release/deps/libopenssl-6242327a64054467.rlib --extern serde_json=/builddir/build/BUILD/sha1-0.6.0/target/release/deps/libserde_json-a4231af3ff68273f.rlib --extern sha1=/builddir/build/BUILD/sha1-0.6.0/target/release/deps/libsha1-bc4aecf9e78559a2.rlib`
running 2 tests
test src/lib.rs -  (line 26) ... FAILED
test src/lib.rs -  (line 12) ... ok
failures:
---- src/lib.rs -  (line 26) stdout ----
	error[E0599]: no method named `hexdigest` found for type `sha1::Sha1` in the current scope
 --> src/lib.rs:29:45
  |
4 | assert_eq!(sha1::Sha1::from("Hello World!").hexdigest(),
  |                                             ^^^^^^^^^
  |
  = help: did you mean `digest`?
thread 'rustc' panicked at 'couldn't compile the test', librustdoc/test.rs:298:13
note: Run with `RUST_BACKTRACE=1` for a backtrace.
failures:
    src/lib.rs -  (line 26)
test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
@vext01
Copy link

vext01 commented Jan 17, 2019

I also noticed that the example on the docs that uses "hexdigest()" does not compile.

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