error: invalid route URI: expected token '/' but found 'a' at index 0
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:5:8
|
5 | #[get("a")]
| ^
|
= help: expected URI in origin form: "/path/"
error: invalid route URI: unexpected EOF: expected token '/' at index 0
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:8:8
|
8 | #[get("")]
| ^
|
= help: expected URI in origin form: "/path/"
error: invalid route URI: expected token '/' but found 'a' at index 0
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:11:8
|
11 | #[get("a/b/c")]
| ^
|
= help: expected URI in origin form: "/path/"
error: route URIs cannot contain empty segments
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:14:10
|
14 | #[get("/a///b")]
| ^^
|
= note: expected "/a/b", found "/a///b"
error: route URIs cannot contain empty segments
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:17:13
|
17 | #[get("/?bat&&")]
| ^^
|
= note: expected "/?bat", found "/?bat&&"
error: route URIs cannot contain empty segments
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:20:13
|
20 | #[get("/?bat&&")]
| ^^
|
= note: expected "/?bat", found "/?bat&&"
error: route URIs cannot contain empty segments
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:23:12
|
23 | #[get("/a/b//")]
| ^^
|
= note: expected "/a/b/", found "/a/b//"
error: unused parameter
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:42:10
|
42 | #[get("/")]
| ^^^^
|
note: expected argument named `name` here
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:43:6
|
43 | fn h0(_name: usize) {}
| ^^^^^^^^^^^^^^
error: unused parameter
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:45:12
|
45 | #[get("/a?")]
| ^
|
note: expected argument named `r` here
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:46:6
|
46 | fn h1() {}
| ^^
error: unused parameter
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:48:23
|
48 | #[post("/a", data = "")]
| ^^^^
|
note: expected argument named `test` here
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:49:6
|
49 | fn h2() {}
| ^^
error: unused parameter
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:51:10
|
51 | #[get("/<_r>")]
| ^^
|
note: expected argument named `_r` here
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:52:6
|
52 | fn h3() {}
| ^^
error: unused parameter
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:54:10
|
54 | #[get("/<_r>/")]
| ^^
|
note: expected argument named `_r` here
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:55:6
|
55 | fn h4() {}
| ^^
error: unused parameter
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:54:15
|
54 | #[get("/<_r>/")]
| ^
|
note: expected argument named `b` here
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:55:6
|
55 | fn h4() {}
| ^^
error: invalid identifier: `foo_.`
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:60:10
|
60 | #[get("/")]
| ^^^^^
|
= help: dynamic parameters must be valid identifiers
= help: did you mean ``?
error: invalid identifier: `foo*`
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:63:10
|
63 | #[get("/")]
| ^^^^
|
= help: dynamic parameters must be valid identifiers
= help: did you mean ``?
error: invalid identifier: `!`
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:66:10
|
66 | #[get("/")]
| ^
|
= help: dynamic parameters must be valid identifiers
= help: did you mean ``?
error: invalid identifier: `name>: tests/ui-fail-nightly/route-path-bad-syntax.rs:69:10
|
69 | #[get("/:")]
| ^^^^^^^^^
|
= help: dynamic parameters must be valid identifiers
= help: did you mean ``?
error: unexpected static parameter
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:74:20
|
74 | #[get("/", data = "foo")]
| ^^^
|
= help: parameter must be dynamic: ``
error: parameter cannot be trailing
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:77:20
|
77 | #[get("/", data = "")]
| ^^^^^^^
|
= help: did you mean ``?
warning: `segment` starts with `<` but does not end with `>`
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:80:20
|
80 | #[get("/", data = "`?
error: unexpected static parameter
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:80:20
|
80 | #[get("/", data = "`
error: invalid identifier: `test `
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:83:21
|
83 | #[get("/", data = "")]
| ^^^^^
|
= help: dynamic parameters must be valid identifiers
= help: did you mean ``?
error: handler arguments must be named
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:89:7
|
89 | fn k0(_: usize) {}
| ^^^^^^^^
|
= help: to name an ignored handler argument, use `_name`
error: parameters cannot be empty
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:93:9
|
93 | #[get("/<>")]
| ^^
warning: `segment` starts with `<` but does not end with `>`
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:96:9
|
96 | #[get("/<")]
| ^^^^^
|
= help: perhaps you meant the dynamic parameter ``?
warning: `segment` starts with `<` but does not end with `>`
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:99:9
|
99 | #[get("/<<<<")]
| ^^^^^^^^
|
= help: perhaps you meant the dynamic parameter ``?
warning: `segment` starts with `<` but does not end with `>`
--> tests/ui-fail-nightly/route-path-bad-syntax.rs:102:9
|
102 | #[get("/<>name><")]
| ^^^^^^^^
|
= help: perhaps you meant the dynamic parameter ``?