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