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

build failed on osx, error: use of undeclared triat name AsRef #81

Closed
iketheadore opened this issue Mar 27, 2015 · 1 comment
Closed

Comments

@iketheadore
Copy link

$ rustc --version
rustc 1.0.0-dev (92dd995e1 2015-03-16) (built 2015-03-18)
$ cargo build
Compiling gcc v0.3.3
/Users/heaven/.cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.3/src/lib.rs:113:23: 113:34 error: use of undeclared trait name AsRef
/Users/heaven/.cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.3/src/lib.rs:113 pub fn include<P: AsRef>(&mut self, dir: P) -> &mut Config {
^~~~~~~~~~~
/Users/heaven/.cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.3/src/lib.rs:125:22: 125:33 error: use of undeclared trait name AsRef
/Users/heaven/.cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.3/src/lib.rs:125 pub fn object<P: AsRef>(&mut self, obj: P) -> &mut Config {
^~~~~~~~~~~
/Users/heaven/.cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.3/src/lib.rs:137:20: 137:31 error: use of undeclared trait name AsRef
/Users/heaven/.cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.3/src/lib.rs:137 pub fn file<P: AsRef>(&mut self, p: P) -> &mut Config {
^~~~~~~~~~~
error: aborting due to 3 previous errors
Could not compile gcc.

@alexcrichton
Copy link

Currently most Rust libraries require a nightly build of rust to work, so if you update to nightly this should work itself out!

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

3 participants