2020-07-20 22:02:10 +00:00
|
|
|
error: invalid path URI: expected token / but found a at index 0
|
|
|
|
--- help: expected path in origin form: "/path/<param>"
|
|
|
|
--> $DIR/route-path-bad-syntax.rs:5:7
|
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
5 | #[get("a")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^
|
|
|
|
|
2020-09-03 05:41:31 +00:00
|
|
|
error: invalid path URI: unexpected EOF: expected token / at index 0
|
2020-07-20 22:02:10 +00:00
|
|
|
--- help: expected path in origin form: "/path/<param>"
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:8:7
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
8 | #[get("")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: invalid path URI: expected token / but found a at index 0
|
|
|
|
--- help: expected path in origin form: "/path/<param>"
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:11:7
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
11 | #[get("a/b/c")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: paths cannot contain empty segments
|
|
|
|
--- note: expected '/a/b', found '/a///b'
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:14:7
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
14 | #[get("/a///b")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: query cannot contain empty segments
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:17:7
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
17 | #[get("/?bat&&")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: query cannot contain empty segments
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:20:7
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
20 | #[get("/?bat&&")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: paths cannot contain empty segments
|
|
|
|
--- note: expected '/a/b', found '/a/b//'
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:23:7
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
23 | #[get("/a/b//")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: invalid path URI: expected EOF but found # at index 3
|
|
|
|
--- help: expected path in origin form: "/path/<param>"
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:28:7
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
28 | #[get("/!@#$%^&*()")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
2020-07-29 04:35:07 +00:00
|
|
|
error: segment contains invalid URI characters
|
2020-07-20 22:02:10 +00:00
|
|
|
--- note: components cannot contain reserved characters
|
|
|
|
--- help: reserved characters include: '%', '+', '&', etc.
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:31:7
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
31 | #[get("/a%20b")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
2020-07-29 04:35:07 +00:00
|
|
|
error: segment contains invalid URI characters
|
2020-07-20 22:02:10 +00:00
|
|
|
--- note: components cannot contain reserved characters
|
|
|
|
--- help: reserved characters include: '%', '+', '&', etc.
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:34:7
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
34 | #[get("/a?a%20b")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2020-07-29 04:35:07 +00:00
|
|
|
error: segment contains invalid URI characters
|
2020-07-20 22:02:10 +00:00
|
|
|
--- note: components cannot contain reserved characters
|
|
|
|
--- help: reserved characters include: '%', '+', '&', etc.
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:37:7
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
37 | #[get("/a?a+b")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: unused dynamic parameter
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:42:7
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
42 | #[get("/<name>")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: [note] expected argument named `name` here
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:43:6
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
43 | fn h0(_name: usize) {}
|
|
|
|
| ^^^^^^^^^^^^^^
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
|
|
error: unused dynamic parameter
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:45:7
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
45 | #[get("/a?<r>")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: [note] expected argument named `r` here
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:46:6
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
46 | fn h1() {}
|
|
|
|
| ^^
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
|
|
error: unused dynamic parameter
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:48:21
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
48 | #[post("/a", data = "<test>")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: [note] expected argument named `test` here
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:49:6
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
49 | fn h2() {}
|
|
|
|
| ^^
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
|
|
error: unused dynamic parameter
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:51:7
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
51 | #[get("/<_r>")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: [note] expected argument named `_r` here
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:52:6
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
52 | fn h3() {}
|
|
|
|
| ^^
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
|
|
error: unused dynamic parameter
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:54:7
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
54 | #[get("/<_r>/<b>")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: [note] expected argument named `b` here
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:55:6
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
55 | fn h4() {}
|
|
|
|
| ^^
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
|
|
error: `foo_.` is not a valid identifier
|
|
|
|
--- help: parameter names must be valid identifiers
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:60:7
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
60 | #[get("/<foo_.>")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: `foo*` is not a valid identifier
|
|
|
|
--- help: parameter names must be valid identifiers
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:63:7
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
63 | #[get("/<foo*>")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: `!` is not a valid identifier
|
|
|
|
--- help: parameter names must be valid identifiers
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:66:7
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
66 | #[get("/<!>")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: `name>:<id` is not a valid identifier
|
|
|
|
--- help: parameter names must be valid identifiers
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:69:7
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
69 | #[get("/<name>:<id>")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: malformed parameter
|
|
|
|
--- help: parameter must be of the form '<param>'
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:74:19
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
74 | #[get("/", data = "foo")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: malformed parameter
|
|
|
|
--- help: parameter must be of the form '<param>'
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:77:19
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
77 | #[get("/", data = "<foo..>")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: parameter is missing a closing bracket
|
|
|
|
--- help: did you mean '<foo>'?
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:80:19
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
80 | #[get("/", data = "<foo")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: `test ` is not a valid identifier
|
|
|
|
--- help: parameter names must be valid identifiers
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:83:19
|
|
|
|
|
|
|
|
|
83 | #[get("/", data = "<test >")]
|
|
|
|
| ^^^^^^^^^
|
2020-07-20 22:02:10 +00:00
|
|
|
|
2020-07-29 04:35:07 +00:00
|
|
|
error: handler arguments cannot be ignored
|
|
|
|
--- help: all handler arguments must be of the form: `ident: Type`
|
|
|
|
--> $DIR/route-path-bad-syntax.rs:89:7
|
2020-07-21 17:23:59 +00:00
|
|
|
|
|
2020-07-29 04:35:07 +00:00
|
|
|
89 | fn k0(_: usize) {}
|
|
|
|
| ^
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
|
|
error: parameter names cannot be empty
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:93:7
|
|
|
|
|
|
|
|
|
93 | #[get("/<>")]
|
|
|
|
| ^^^^^
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
|
|
error: malformed parameter or identifier
|
|
|
|
--- help: parameters must be of the form '<param>'
|
|
|
|
--- help: identifiers cannot contain '<' or '>'
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:96:7
|
|
|
|
|
|
|
|
|
96 | #[get("/<id><")]
|
|
|
|
| ^^^^^^^^
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
|
|
error: malformed parameter or identifier
|
|
|
|
--- help: parameters must be of the form '<param>'
|
|
|
|
--- help: identifiers cannot contain '<' or '>'
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:99:7
|
|
|
|
|
|
|
|
|
99 | #[get("/<<<<id><")]
|
|
|
|
| ^^^^^^^^^^^
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
|
|
error: malformed parameter or identifier
|
|
|
|
--- help: parameters must be of the form '<param>'
|
|
|
|
--- help: identifiers cannot contain '<' or '>'
|
2020-07-21 17:23:59 +00:00
|
|
|
--> $DIR/route-path-bad-syntax.rs:102:7
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
102 | #[get("/<>name><")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^^^^^^
|