mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-24 10:22:23 +00:00
17 lines
547 B
Rust
17 lines
547 B
Rust
#![feature(plugin)]
|
|
#![plugin(rocket_codegen)]
|
|
|
|
#[get("/<name>")] //~ ERROR 'name' is declared
|
|
fn get(other: usize) -> &'static str { "hi" } //~ ERROR isn't in the function
|
|
|
|
#[get("/a?<r>")] //~ ERROR 'r' is declared
|
|
fn get1() -> &'static str { "hi" } //~ ERROR isn't in the function
|
|
|
|
#[post("/a", data = "<test>")] //~ ERROR 'test' is declared
|
|
fn post() -> &'static str { "hi" } //~ ERROR isn't in the function
|
|
|
|
#[get("/<_r>")] //~ ERROR '_r' is declared
|
|
fn get2(r: usize) -> &'static str { "hi" } //~ ERROR isn't in the function
|
|
|
|
fn main() { }
|