From 39ad5abae9b01cc007026e32a39e13396e64acb8 Mon Sep 17 00:00:00 2001 From: Nick Thompson Date: Mon, 1 Oct 2018 14:25:58 -0600 Subject: [PATCH] Fix the example code in README.md by applying the following compiler suggestion: error[E0658]: procedural macros cannot be expanded to expressions (see issue #38356) --> src/main.rs:12:38 | 12 | rocket::ignite().mount("/hello", routes![hello]).launch(); | ^^^^^^^^^^^^^^ | = help: add #![feature(proc_macro_non_items)] to the crate attributes to enable --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 174cfa8955..e01ce27ed2 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Rocket is web framework for Rust (nightly) with a focus on ease-of-use, expressibility, and speed. Here's an example of a complete Rocket application: ```rust -#![feature(plugin, decl_macro)] +#![feature(plugin, decl_macro, proc_macro_non_items)] #![plugin(rocket_codegen)] #[macro_use] extern crate rocket;