2024-03-14 21:19:03 +01:00
|
|
|
error[E0277]: the trait bound `bool: FromRequest<(), axum_core::extract::private::ViaParts>` is not satisfied
|
|
|
|
|
--> tests/debug_handler/fail/argument_not_extractor.rs:4:24
|
2021-11-11 21:26:08 +01:00
|
|
|
|
|
2024-03-14 21:19:03 +01:00
|
|
|
4 | async fn handler(_foo: bool) {}
|
2025-09-28 20:31:17 +02:00
|
|
|
| ^^^^ 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.
|
2024-12-27 13:15:58 +01:00
|
|
|
See `https://docs.rs/axum/0.8/axum/extract/index.html` for details
|
2024-09-11 20:41:44 +02:00
|
|
|
= help: the following other types implement trait `FromRequestParts<S>`:
|
2025-12-20 18:40:34 +01:00
|
|
|
`ConnectInfo<T>` implements `FromRequestParts<S>`
|
|
|
|
|
`Extension<T>` implements `FromRequestParts<S>`
|
|
|
|
|
`HeaderMap` implements `FromRequestParts<S>`
|
|
|
|
|
`MatchedPath` implements `FromRequestParts<S>`
|
|
|
|
|
`Method` implements `FromRequestParts<S>`
|
|
|
|
|
`OriginalUri` implements `FromRequestParts<S>`
|
|
|
|
|
`Query<T>` implements `FromRequestParts<S>`
|
|
|
|
|
`RawPathParams` implements `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`
|
2024-03-14 21:19:03 +01:00
|
|
|
--> tests/debug_handler/fail/argument_not_extractor.rs:4:24
|
2022-08-22 12:23:20 +02:00
|
|
|
|
|
2024-03-14 21:19:03 +01:00
|
|
|
4 | async fn handler(_foo: bool) {}
|
2023-09-29 07:25:26 +00:00
|
|
|
| ^^^^ required by this bound in `__axum_macros_check_handler_0_from_request_check`
|