Created
May 27, 2015 21:42
-
-
Save ctjhoa/403e2114ff0ef5f3fb44 to your computer and use it in GitHub Desktop.
Trait ToSocketAddrs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 ctjhoa@localhost ~/rust/coreutils (git)-[master] % make TESTS='hostname' test :( | |
rm -rf /home/ctjhoa/rust/coreutils/tmp | |
mkdir /home/ctjhoa/rust/coreutils/tmp | |
cd /home/ctjhoa/rust/coreutils/deps && cargo build --package getopts --release | |
cd /home/ctjhoa/rust/coreutils/deps && cargo build --package libc --release | |
rustc -O -L /home/ctjhoa/rust/coreutils/build/ --extern getopts=/home/ctjhoa/rust/coreutils/build/libgetopts.rlib --extern libc=/home/ctjhoa/rust/coreutils/build/liblibc.rlib --crate-type rlib --emit link,dep-info /home/ctjhoa/rust/coreutils/src/hostname/hostname.rs --out-dir /home/ctjhoa/rust/coreutils/build | |
/home/ctjhoa/rust/coreutils/src/hostname/hostname.rs:73:32: 73:49 error: type `collections::string::String` does not implement any method in scope named `to_socket_addrs` | |
/home/ctjhoa/rust/coreutils/src/hostname/hostname.rs:73 match hostname.to_socket_addrs() { | |
^~~~~~~~~~~~~~~~~ | |
/home/ctjhoa/rust/coreutils/src/hostname/hostname.rs:73:32: 73:49 help: methods from traits can only be called if the trait is in scope; the following trait is implemented but not in scope, perhaps add a `use` for it: | |
/home/ctjhoa/rust/coreutils/src/hostname/hostname.rs:73:32: 73:49 help: candidate #1: use `std::net::addr::ToSocketAddrs` | |
/home/ctjhoa/rust/coreutils/src/hostname/hostname.rs:82:48: 82:60 error: the type of this value must be known in this context | |
/home/ctjhoa/rust/coreutils/src/hostname/hostname.rs:82 hashset.insert(addr.clone()); | |
^~~~~~~~~~~~ | |
error: aborting due to 2 previous errors | |
Makefile:288: recipe for target '/home/ctjhoa/rust/coreutils/build/libhostname.rlib' failed | |
make: *** [/home/ctjhoa/rust/coreutils/build/libhostname.rlib] Error 101 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 ctjhoa@localhost ~/rust/coreutils (git)-[master] % make TESTS='hostname' test :( | |
rm -rf /home/ctjhoa/rust/coreutils/tmp | |
mkdir /home/ctjhoa/rust/coreutils/tmp | |
cd /home/ctjhoa/rust/coreutils/deps && cargo build --package getopts --release | |
cd /home/ctjhoa/rust/coreutils/deps && cargo build --package libc --release | |
rustc -O -L /home/ctjhoa/rust/coreutils/build/ --extern getopts=/home/ctjhoa/rust/coreutils/build/libgetopts.rlib --extern libc=/home/ctjhoa/rust/coreutils/build/liblibc.rlib --crate-type rlib --emit link,dep-info /home/ctjhoa/rust/coreutils/src/hostname/hostname.rs --out-dir /home/ctjhoa/rust/coreutils/build | |
/home/ctjhoa/rust/coreutils/src/hostname/hostname.rs:24:5: 24:34 error: trait `ToSocketAddrs` is private | |
/home/ctjhoa/rust/coreutils/src/hostname/hostname.rs:24 use std::net::addr::ToSocketAddrs; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
error: aborting due to previous error | |
Makefile:288: recipe for target '/home/ctjhoa/rust/coreutils/build/libhostname.rlib' failed | |
make: *** [/home/ctjhoa/rust/coreutils/build/libhostname.rlib] Error 101 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment