2018-10-05 04:44:42 +00:00
|
|
|
warning: 'application/x-custom' is not a known media type
|
2022-02-16 18:08:55 +00:00
|
|
|
--> tests/ui-fail-nightly/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
|
2022-02-16 18:08:55 +00:00
|
|
|
--> tests/ui-fail-nightly/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
|
2022-02-16 18:08:55 +00:00
|
|
|
--> tests/ui-fail-nightly/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
|
2022-02-16 18:08:55 +00:00
|
|
|
--> tests/ui-fail-nightly/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
|
2022-02-16 18:08:55 +00:00
|
|
|
--> tests/ui-fail-nightly/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
|
|
|
| ^^^
|
2021-05-18 19:00:46 +00:00
|
|
|
= note: this warning originates in the attribute macro `get` (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
|
2022-02-16 18:08:55 +00:00
|
|
|
--> tests/ui-fail-nightly/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
|
2022-02-16 18:08:55 +00:00
|
|
|
--> tests/ui-fail-nightly/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
|
|
|
| ^^^^
|
2021-05-18 19:00:46 +00:00
|
|
|
= note: this warning originates in the attribute macro `head` (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!
|
2022-02-16 18:08:55 +00:00
|
|
|
--> tests/ui-fail-nightly/route-warnings.rs:25:5
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
|
|
|
25 | compile_error!("checking for warnings!")
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|