This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
AppState::from_ref(...)
inside a impl<S> FromRequest<S>
breaks trait bounds axum::serve
#2721
Closed
1 task done
Bug Report
Version
Platform
Description
Following this example code and these docs, I have written the following:
However adding
where AppState: FromRef<S>
seems to break trait bounds necessary foraxum::serve
:It is not at all clear how this error message relates to the actual code written. Am I doing something wrong here?
The text was updated successfully, but these errors were encountered: