Skip to content

doc-tests are failing #10

@igor-raits

Description

@igor-raits
   Doc-tests hostname
     Running `/usr/bin/rustdoc --crate-type lib --test /home/brain/rpmbuild/BUILD/hostname-0.3.0/src/lib.rs --crate-name hostname -L dependency=/home/brain/rpmbuild/BUILD/hostname-0.3.0/target/release/deps -L dependency=/home/brain/rpmbuild/BUILD/hostname-0.3.0/target/release/deps --cfg 'feature="default"' --extern hostname=/home/brain/rpmbuild/BUILD/hostname-0.3.0/target/release/deps/libhostname-39f1b9d2526e0dbd.rlib --extern libc=/home/brain/rpmbuild/BUILD/hostname-0.3.0/target/release/deps/liblibc-a57c72450827c75f.rlib --extern match_cfg=/home/brain/rpmbuild/BUILD/hostname-0.3.0/target/release/deps/libmatch_cfg-f9e3034fabbadd5e.rlib --extern version_sync=/home/brain/rpmbuild/BUILD/hostname-0.3.0/target/release/deps/libversion_sync-0cf3986e57ef4972.rlib`

running 2 tests
test src/lib.rs -  (line 7) ... FAILED
test src/lib.rs - get (line 68) ... ok

failures:

---- src/lib.rs -  (line 7) stdout ----
error[E0425]: cannot find function `set` in crate `hostname`
 --> src/lib.rs:11:11
  |
6 | hostname::set("potato")?;
  |           ^^^ help: a function with a similar name exists: `get`

this is on Fedora Rawhide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions