Skip to content

Rocket does not compile on nightly-2021-10-15 #1948

@mpajkowski

Description

@mpajkowski

Description

Compilation fails with following error:

error[E0277]: the trait bound `(dyn catcher::handler::Handler + 'static): catcher::handler::Cloneable` is not satisfied
   --> /home/mpa/.cargo/registry/src/github.com-1ecc6299db9ec823/rocket-0.5.0-rc.1/src/catcher/handler.rs:150:14
    |
150 |         self.clone_handler()
    |              ^^^^^^^^^^^^^ the trait `catcher::handler::Cloneable` is not implemented for `(dyn catcher::handler::Handler + 'static)`

error[E0277]: the trait bound `(dyn route::handler::Handler + 'static): route::handler::Cloneable` is not satisfied
   --> /home/mpa/.cargo/registry/src/github.com-1ecc6299db9ec823/rocket-0.5.0-rc.1/src/route/handler.rs:316:14
    |
316 |         self.clone_handler()
    |              ^^^^^^^^^^^^^ the trait `route::handler::Cloneable` is not implemented for `(dyn route::handler::Handler + 'static)`

To Reproduce

main.rs:

fn main() {
    println!("Hello, world!");
}

Cargo.toml:

[package]
name = "rocket-build-failure"
version = "0.1.0"
edition = "2018"

[dependencies]
rocket = "0.5.0-rc.1"

rust-toolchain.toml:

[toolchain]
channel = "nightly-2021-10-15"

Environment:

  • Arch Linux 5.4.12-arch1-1
  • rocket 0.5.0-rc.1
  • toolchain: nightly-x86_64-unknown-linux-gnu (c1026539b 2021-10-15)

Metadata

Metadata

Assignees

No one assigned

    Labels

    nightly breakageBreakage on the nightly channel onlyupstreamAn unresolvable issue: an upstream dependency bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions