2018-10-05 04:44:42 +00:00
|
|
|
warning: 'application/x-custom' is not a known media type
|
2020-07-11 17:31:42 +00:00
|
|
|
--> $DIR/route-warnings.rs:7:21
|
2018-10-05 04:44:42 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
7 | #[get("/", format = "application/x-custom")]
|
2018-10-05 04:44:42 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
warning: 'x-custom/plain' is not a known media type
|
2020-07-11 17:31:42 +00:00
|
|
|
--> $DIR/route-warnings.rs:10:21
|
2018-10-05 04:44:42 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
10 | #[get("/", format = "x-custom/plain")]
|
2018-10-05 04:44:42 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
warning: 'x-custom/x-custom' is not a known media type
|
2020-07-11 17:31:42 +00:00
|
|
|
--> $DIR/route-warnings.rs:13:21
|
2018-10-05 04:44:42 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
13 | #[get("/", format = "x-custom/x-custom")]
|
2018-10-05 04:44:42 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
warning: `data` used with non-payload-supporting method
|
2020-07-11 17:31:42 +00:00
|
|
|
--> $DIR/route-warnings.rs:18:12
|
2018-10-05 04:44:42 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
18 | #[get("/", data = "<_foo>")]
|
2018-10-05 04:44:42 +00:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: 'GET' does not typically support payloads
|
2020-07-11 17:31:42 +00:00
|
|
|
--> $DIR/route-warnings.rs:18:3
|
2018-10-05 04:44:42 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
18 | #[get("/", data = "<_foo>")]
|
2018-10-05 04:44:42 +00:00
|
|
|
| ^^^
|
2020-02-15 11:51:40 +00:00
|
|
|
= note: this warning originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-10-05 04:44:42 +00:00
|
|
|
|
|
|
|
warning: `data` used with non-payload-supporting method
|
2020-07-11 17:31:42 +00:00
|
|
|
--> $DIR/route-warnings.rs:21:13
|
2018-10-05 04:44:42 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
21 | #[head("/", data = "<_foo>")]
|
2018-10-05 04:44:42 +00:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: 'HEAD' does not typically support payloads
|
2020-07-11 17:31:42 +00:00
|
|
|
--> $DIR/route-warnings.rs:21:3
|
2018-10-05 04:44:42 +00:00
|
|
|
|
|
2020-07-21 17:23:59 +00:00
|
|
|
21 | #[head("/", data = "<_foo>")]
|
2018-10-05 04:44:42 +00:00
|
|
|
| ^^^^
|
2020-02-15 11:51:40 +00:00
|
|
|
= note: this warning originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-10-05 04:44:42 +00:00
|
|
|
|
2020-07-20 22:02:10 +00:00
|
|
|
error: checking for warnings!
|
|
|
|
--> $DIR/route-warnings.rs:25:5
|
|
|
|
|
|
|
|
|
25 | compile_error!("checking for warnings!")
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|