2022-08-22 12:23:20 +02:00
|
|
|
error[E0277]: the trait bound `bool: FromRequestParts<()>` is not satisfied
|
2023-09-29 09:25:26 +02:00
|
|
|
--> tests/debug_handler/fail/argument_not_extractor.rs:5:24
|
2021-11-11 21:26:08 +01:00
|
|
|
|
|
2023-09-29 09:25:26 +02:00
|
|
|
5 | async fn handler(_foo: bool) {}
|
|
|
|
| ^^^^ the trait `FromRequestParts<()>` is not implemented for `bool`
|
2021-11-11 21:26:08 +01:00
|
|
|
|
|
2022-11-19 12:45:03 +01:00
|
|
|
= note: Function argument is not a valid axum extractor.
|
|
|
|
See `https://docs.rs/axum/latest/axum/extract/index.html` for details
|
2022-08-22 12:23:20 +02:00
|
|
|
= help: the following other types implement trait `FromRequestParts<S>`:
|
2023-09-29 09:25:26 +02:00
|
|
|
<HeaderMap as FromRequestParts<S>>
|
|
|
|
<Extension<T> as FromRequestParts<S>>
|
|
|
|
<Method as FromRequestParts<S>>
|
2023-11-23 12:30:23 +01:00
|
|
|
<axum::http::request::Parts as FromRequestParts<S>>
|
2023-09-29 09:25:26 +02:00
|
|
|
<Uri as FromRequestParts<S>>
|
|
|
|
<ConnectInfo<T> as FromRequestParts<S>>
|
2023-11-16 08:15:16 +01:00
|
|
|
<Version as FromRequestParts<S>>
|
2023-11-23 12:30:23 +01:00
|
|
|
<Extensions as FromRequestParts<S>>
|
2023-04-11 16:09:48 +02:00
|
|
|
and $N others
|
2023-03-12 16:37:32 +01:00
|
|
|
= note: required for `bool` to implement `FromRequest<(), axum_core::extract::private::ViaParts>`
|
2022-08-22 12:23:20 +02:00
|
|
|
note: required by a bound in `__axum_macros_check_handler_0_from_request_check`
|
2023-09-29 09:25:26 +02:00
|
|
|
--> tests/debug_handler/fail/argument_not_extractor.rs:5:24
|
2022-08-22 12:23:20 +02:00
|
|
|
|
|
2023-09-29 09:25:26 +02:00
|
|
|
5 | async fn handler(_foo: bool) {}
|
|
|
|
| ^^^^ required by this bound in `__axum_macros_check_handler_0_from_request_check`
|