2023-10-14 20:04:32 +05:30
|
|
|
error: expected `=`
|
|
|
|
--> $DIR/simple-fail.rs:3:1
|
2022-05-11 03:43:01 +05:30
|
|
|
|
|
|
|
|
3 | #[get("/one", other)]
|
2023-10-14 20:04:32 +05:30
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in the attribute macro `get` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2022-05-11 03:43:01 +05:30
|
|
|
|
2023-10-14 20:04:32 +05:30
|
|
|
error: expected string literal
|
2022-05-11 03:43:01 +05:30
|
|
|
--> $DIR/simple-fail.rs:8:8
|
|
|
|
|
|
|
|
|
8 | #[post(/two)]
|
|
|
|
| ^
|
|
|
|
|
2023-10-14 20:04:32 +05:30
|
|
|
error: invalid service definition, expected #[<method>("<path>")]
|
|
|
|
--> $DIR/simple-fail.rs:8:8
|
|
|
|
|
|
|
|
|
8 | #[post(/two)]
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: expected string literal
|
2022-05-11 03:43:01 +05:30
|
|
|
--> $DIR/simple-fail.rs:15:9
|
|
|
|
|
|
|
|
|
15 | #[patch(PATCH_PATH)]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2023-10-14 20:04:32 +05:30
|
|
|
error: invalid service definition, expected #[<method>("<path>")]
|
|
|
|
--> $DIR/simple-fail.rs:15:9
|
|
|
|
|
|
|
|
|
15 | #[patch(PATCH_PATH)]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: Multiple paths specified! There should be only one.
|
|
|
|
--> $DIR/simple-fail.rs:20:1
|
2022-05-11 03:43:01 +05:30
|
|
|
|
|
|
|
|
20 | #[delete("/four", "/five")]
|
2023-10-14 20:04:32 +05:30
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in the attribute macro `delete` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2022-05-11 03:43:01 +05:30
|
|
|
|
2023-10-14 20:04:32 +05:30
|
|
|
error: HTTP method forbidden here; to handle multiple methods, use `route` instead
|
2022-05-11 03:43:01 +05:30
|
|
|
--> $DIR/simple-fail.rs:25:19
|
|
|
|
|
|
|
|
|
25 | #[delete("/five", method="GET")]
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: Multiple paths specified! Should be only one!
|
|
|
|
--> $DIR/simple-fail.rs:32:20
|
|
|
|
|
|
|
|
|
32 | #[get("/six", path="SIX")]
|
|
|
|
| ^^^^^
|