File: argument_not_extractor.stderr

package info (click to toggle)
rust-axum 0.7.9-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,992 kB
  • sloc: javascript: 26; makefile: 24; sql: 6; sh: 1
file content (24 lines) | stat: -rw-r--r-- 1,510 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
  |
4 | async fn handler(_foo: bool) {}
  |                        ^^^^ the trait `FromRequestParts<()>` is not implemented for `bool`, which is required by `bool: FromRequest<(), _>`
  |
  = note: Function argument is not a valid axum extractor.
          See `https://docs.rs/axum/0.7/axum/extract/index.html` for details
  = help: the following other types implement trait `FromRequestParts<S>`:
            `()` implements `FromRequestParts<S>`
            `(T1, T2)` implements `FromRequestParts<S>`
            `(T1, T2, T3)` implements `FromRequestParts<S>`
            `(T1, T2, T3, T4)` implements `FromRequestParts<S>`
            `(T1, T2, T3, T4, T5)` implements `FromRequestParts<S>`
            `(T1, T2, T3, T4, T5, T6)` implements `FromRequestParts<S>`
            `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRequestParts<S>`
            `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRequestParts<S>`
          and $N others
  = note: required for `bool` to implement `FromRequest<(), axum_core::extract::private::ViaParts>`
note: required by a bound in `__axum_macros_check_handler_0_from_request_check`
 --> tests/debug_handler/fail/argument_not_extractor.rs:4:24
  |
4 | async fn handler(_foo: bool) {}
  |                        ^^^^ required by this bound in `__axum_macros_check_handler_0_from_request_check`