use axum_macros::FromRequest; use axum::extract::State; #[derive(FromRequest)] struct Extractor { inner_state: State, also_inner_state: State, } #[derive(Clone)] struct AppState {} fn assert_from_request() where Extractor: axum::extract::FromRequest, { } fn main() {}