mirror of https://github.com/rwf2/Rocket.git
Fix test for latest nightly.
This commit is contained in:
parent
6fe2f51332
commit
6498c26473
|
@ -5,21 +5,21 @@
|
|||
fn get() -> &'static str { "hi" }
|
||||
|
||||
#[get("/<name><")] //~ ERROR malformed
|
||||
fn get(name: &str) -> &'static str { "hi" }
|
||||
fn get1(name: &str) -> &'static str { "hi" }
|
||||
|
||||
#[get("/<<<<name><")] //~ ERROR identifiers
|
||||
fn get(name: &str) -> &'static str { "hi" }
|
||||
fn get2(name: &str) -> &'static str { "hi" }
|
||||
|
||||
#[get("/<!>")] //~ ERROR identifiers
|
||||
fn get() -> &'static str { "hi" }
|
||||
fn get3() -> &'static str { "hi" }
|
||||
|
||||
#[get("/<_>")] //~ ERROR ignored
|
||||
fn get() -> &'static str { "hi" }
|
||||
fn get4() -> &'static str { "hi" }
|
||||
|
||||
#[get("/<1>")] //~ ERROR identifiers
|
||||
fn get() -> &'static str { "hi" }
|
||||
fn get5() -> &'static str { "hi" }
|
||||
|
||||
#[get("/<>name><")] //~ ERROR cannot be empty
|
||||
fn get() -> &'static str { "hi" }
|
||||
fn get6() -> &'static str { "hi" }
|
||||
|
||||
fn main() { }
|
||||
|
|
Loading…
Reference in New Issue