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

Can't compile with rust nightly (built 2015-03-05) #47

Closed
LukasKalbertodt opened this issue Mar 5, 2015 · 0 comments
Closed

Can't compile with rust nightly (built 2015-03-05) #47

LukasKalbertodt opened this issue Mar 5, 2015 · 0 comments

Comments

@LukasKalbertodt
Copy link
Contributor

I cloned this repository and tried to cargo build it, but it fails:

    src/lib.rs:30:37: 30:45 error: type `iron::request::Body<'_>` does not implement any method in scope named `by_ref`
    src/lib.rs:30     match LimitReader::new(req.body.by_ref(), limit).read_to_end() {
                                                      ^~~~~~~~
    src/lib.rs:30:45: 30:45 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:
    src/lib.rs:30:45: 30:45 help: candidate #1: use `std::io::ReadExt`
    error: aborting due to previous error
    Could not compile `bodyparser`.

Version:

$ rustc -V
rustc 1.0.0-nightly (3b3bb0e68 2015-03-04) (built 2015-03-05)
$ cargo -V
cargo 0.0.1-pre-nightly (dd7c7bd 2015-03-04) (built 2015-03-04)

I tried to fix it by adding use std::io::ReadExt, but it is not the only error...

(I hope I didn't do anything wrong...)

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

1 participant