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

Compilation error on nightly rust #1042

Closed
TerminalWitchcraft opened this issue Jul 2, 2019 · 4 comments

Comments

@TerminalWitchcraft
Copy link

commented Jul 2, 2019

Rocket fails to compile on latest(as of writing this) version of nightly rust. The version of rust used is:

rustc 1.37.0-nightly (17e62f77f 2019-07-01)

Below is the error:

error[E0432]: unresolved import `std::boxed::FnBox`
 --> /home/[username]/.cargo/registry/src/github.com-1ecc6299db9ec823/rocket-0.4.1/src/fairing/ad_hoc.rs:2:5
  |
2 | use std::boxed::FnBox;
  |     ^^^^^^^^^^^^^^^^^ no `FnBox` in `boxed`

   Compiling reqwest v0.9.18
error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.
error: Could not compile `rocket`.
warning: build failed, waiting for other jobs to finish...
error: build failed

Any help would be appreciated.

@perlish

This comment has been minimized.

Copy link

commented Jul 2, 2019

same issue after update with rustup

@doctorn

This comment has been minimized.

Copy link

commented Jul 2, 2019

Updating to 0.4.2 fixed this for me.

@SergioBenitez

This comment has been minimized.

Copy link
Owner

commented Jul 2, 2019

Please update to Rocket 0.4.2. Running cargo update should do it for you.

@perlish

This comment has been minimized.

Copy link

commented Jul 3, 2019

0.4.2 fixed this for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.