Rocket/codegen/tests/refactored_rocket_no_lint_e...

29 lines
453 B
Rust
Raw Normal View History

#![feature(plugin, decl_macro)]
#![plugin(rocket_codegen)]
#![allow(dead_code, unused_variables)]
extern crate rocket;
use rocket::{Rocket, State};
#[get("/")]
fn index(state: State<u32>) { }
fn rocket() -> Rocket {
rocket::ignite()
.mount("/", routes![index])
.manage(100u32)
}
2017-09-10 08:19:38 +00:00
#[test]
fn main() {
if false {
rocket().launch();
}
let instance = rocket();
if false {
instance.launch();
}
}