@@ -5,45 +5,45 @@ error: cannot use `rejection` without `via`
5
5
| ^^^^^^^^^
6
6
7
7
error[E0277]: the trait bound `fn(MyExtractor) -> impl Future<Output = ()> {handler}: Handler<_, _>` is not satisfied
8
- --> tests/from_request/fail/override_rejection_on_enum_without_via.rs:11:50
9
- |
10
- 11 | let _: Router = Router::new().route("/", get(handler).post(handler_result));
11
- | --- ^^^^^^^ the trait `Handler<_, _>` is not implemented for fn item `fn(MyExtractor) -> impl Future<Output = ()> {handler}`
12
- | |
13
- | required by a bound introduced by this call
14
- |
15
- = note: Consider using `#[axum::debug_handler]` to improve the error message
16
- = help: the following other types implement trait `Handler<T, S>`:
17
- <Layered<L, H, T, S> as Handler<T, S>>
18
- <MethodRouter<S> as Handler<(), S>>
8
+ --> tests/from_request/fail/override_rejection_on_enum_without_via.rs:11:50
9
+ |
10
+ 11 | let _: Router = Router::new().route("/", get(handler).post(handler_result));
11
+ | --- ^^^^^^^ the trait `Handler<_, _>` is not implemented for fn item `fn(MyExtractor) -> impl Future<Output = ()> {handler}`
12
+ | |
13
+ | required by a bound introduced by this call
14
+ |
15
+ = note: Consider using `#[axum::debug_handler]` to improve the error message
16
+ = help: the following other types implement trait `Handler<T, S>`:
17
+ <Layered<L, H, T, S> as Handler<T, S>>
18
+ <MethodRouter<S> as Handler<(), S>>
19
19
note: required by a bound in `axum::routing::get`
20
- --> $WORKSPACE/axum/src/routing/method_routing.rs
21
- |
22
- | top_level_handler_fn!(get, GET);
23
- | ^^^^^^^^^^^^^^^^^^^^^^---^^^^^^
24
- | | |
25
- | | required by a bound in this function
26
- | required by this bound in `get`
27
- = note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info)
20
+ --> $WORKSPACE/axum/src/routing/method_routing.rs
21
+ |
22
+ | top_level_handler_fn!(get, GET);
23
+ | ^^^^^^^^^^^^^^^^^^^^^^---^^^^^^
24
+ | | |
25
+ | | required by a bound in this function
26
+ | required by this bound in `get`
27
+ = note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info)
28
28
29
29
error[E0277]: the trait bound `fn(Result<MyExtractor, MyRejection>) -> impl Future<Output = ()> {handler_result}: Handler<_, _>` is not satisfied
30
- --> tests/from_request/fail/override_rejection_on_enum_without_via.rs:11:64
31
- |
32
- 11 | let _: Router = Router::new().route("/", get(handler).post(handler_result));
33
- | ---- ^^^^^^^^^^^^^^ the trait `Handler<_, _>` is not implemented for fn item `fn(Result<MyExtractor, MyRejection>) -> impl Future<Output = ()> {handler_result}`
34
- | |
35
- | required by a bound introduced by this call
36
- |
37
- = note: Consider using `#[axum::debug_handler]` to improve the error message
38
- = help: the following other types implement trait `Handler<T, S>`:
39
- <Layered<L, H, T, S> as Handler<T, S>>
40
- <MethodRouter<S> as Handler<(), S>>
30
+ --> tests/from_request/fail/override_rejection_on_enum_without_via.rs:11:64
31
+ |
32
+ 11 | let _: Router = Router::new().route("/", get(handler).post(handler_result));
33
+ | ---- ^^^^^^^^^^^^^^ the trait `Handler<_, _>` is not implemented for fn item `fn(Result<MyExtractor, MyRejection>) -> impl Future<Output = ()> {handler_result}`
34
+ | |
35
+ | required by a bound introduced by this call
36
+ |
37
+ = note: Consider using `#[axum::debug_handler]` to improve the error message
38
+ = help: the following other types implement trait `Handler<T, S>`:
39
+ <Layered<L, H, T, S> as Handler<T, S>>
40
+ <MethodRouter<S> as Handler<(), S>>
41
41
note: required by a bound in `MethodRouter::<S>::post`
42
- --> $WORKSPACE/axum/src/routing/method_routing.rs
43
- |
44
- | chained_handler_fn!(post, POST);
45
- | ^^^^^^^^^^^^^^^^^^^^----^^^^^^^
46
- | | |
47
- | | required by a bound in this associated function
48
- | required by this bound in `MethodRouter::<S>::post`
49
- = note: this error originates in the macro `chained_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info)
42
+ --> $WORKSPACE/axum/src/routing/method_routing.rs
43
+ |
44
+ | chained_handler_fn!(post, POST);
45
+ | ^^^^^^^^^^^^^^^^^^^^----^^^^^^^
46
+ | | |
47
+ | | required by a bound in this associated function
48
+ | required by this bound in `MethodRouter::<S>::post`
49
+ = note: this error originates in the macro `chained_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments