2024-05-02 22:11:00 +00:00
|
|
|
warning: 'application/x-custom' is not a known format or 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
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2024-05-02 22:11:00 +00:00
|
|
|
|
|
|
|
|
= note: apply `#[suppress(unknown_format)]` before the item to suppress this lint
|
2018-10-05 04:44:42 +00:00
|
|
|
|
2024-05-02 22:11:00 +00:00
|
|
|
warning: 'x-custom/plain' is not a known format or 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
|
|
|
| ^^^^^^^^^^^^^^^^
|
2024-05-02 22:11:00 +00:00
|
|
|
|
|
|
|
|
= note: apply `#[suppress(unknown_format)]` before the item to suppress this lint
|
2018-10-05 04:44:42 +00:00
|
|
|
|
2024-05-02 22:11:00 +00:00
|
|
|
warning: 'x-custom/x-custom' is not a known format or 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
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2024-05-02 22:11:00 +00:00
|
|
|
|
|
|
|
|
= note: apply `#[suppress(unknown_format)]` before the item to suppress this lint
|
2018-10-05 04:44:42 +00:00
|
|
|
|
|
|
|
warning: `data` used with non-payload-supporting method
|
2024-05-02 22:11:00 +00:00
|
|
|
--> tests/ui-fail-nightly/route-warnings.rs:22:12
|
2018-10-05 04:44:42 +00:00
|
|
|
|
|
2024-05-02 22:11:00 +00:00
|
|
|
22 | #[get("/", data = "<_foo>")]
|
2018-10-05 04:44:42 +00:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
2024-05-02 22:11:00 +00:00
|
|
|
= note: 'GET' does not typically support payloads
|
|
|
|
= note: apply `#[suppress(dubious_payload)]` before the item to suppress this lint
|
2018-10-05 04:44:42 +00:00
|
|
|
|
|
|
|
warning: `data` used with non-payload-supporting method
|
2024-05-02 22:11:00 +00:00
|
|
|
--> tests/ui-fail-nightly/route-warnings.rs:25:13
|
2018-10-05 04:44:42 +00:00
|
|
|
|
|
2024-05-02 22:11:00 +00:00
|
|
|
25 | #[head("/", data = "<_foo>")]
|
2018-10-05 04:44:42 +00:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
2024-05-02 22:11:00 +00:00
|
|
|
= note: 'HEAD' does not typically support payloads
|
|
|
|
= note: apply `#[suppress(dubious_payload)]` before the item to suppress this lint
|
2018-10-05 04:44:42 +00:00
|
|
|
|
2020-07-20 22:02:10 +00:00
|
|
|
error: checking for warnings!
|
2024-05-02 22:11:00 +00:00
|
|
|
--> tests/ui-fail-nightly/route-warnings.rs:33:5
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2024-05-02 22:11:00 +00:00
|
|
|
33 | compile_error!("checking for warnings!")
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|