#[debug_handler]
doesn't improve error message for WithRejection
#1337
Labels
A-axum-macros
C-bug
Category: This is a bug.
E-medium
Call for participation: Experience needed to fix: Medium / intermediate
WithRejection<T, E>
requiresE
to implementIntoResponse
. If you forget that you get the familiar "handler not implemented" error and#[debug_handler]
doesn't help:The error message is
The generate code is
For some reason the additional
M
type parameter changes rust's error message. If you remove that and instead generateThe error message becomes
We could look into this and see if its possible to improve this.
The text was updated successfully, but these errors were encountered: