0

I tried to install Rust nightly and compile Rocket's hello_world sample project. I got this error:

error[E0599]: no associated item named `Lifetime`

error[E0599]: no associated item named `Lifetime` found for type `syntax::ast::GenericParam` in the current scope
  --> /Users/azwar/.cargo/registry/src/github.com-1ecc6299db9ec823/rocket_codegen-0.3.13/src/decorators/derive_form.rs:30:25
   |
30 |                         GenericParam::Lifetime(ref def) => Some(def),
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated item not found in `syntax::ast::GenericParam`

I searched this error, but there are no thread or article that explain how to fix that error.

These are my dependencies:

[dependencies]
rocket = "0.3.13"
rocket_codegen = "0.3.13"

I'm using Rust rust version 1.28.0-nightly (cbc4c8380 2018-06-22)

Shepmaster
  • 388,571
  • 95
  • 1,107
  • 1,366
azwar_akbar
  • 1,451
  • 18
  • 27

1 Answers1

3

Your issue is fixed in v0.3.14.

Update your Cargo.toml to "0.3.14". Then update your crates with cargo update or specify the packages directly:

cargo update -p rocket_codegen
cargo update -p rocket
Tim Diekmann
  • 7,755
  • 11
  • 41
  • 69