axum/axum-macros/tests/from_request/pass/state_infer.rs

19 lines
313 B
Rust
Raw Normal View History

use axum_macros::FromRequest;
use axum::extract::State;
#[derive(FromRequest)]
struct Extractor {
inner_state: State<AppState>,
}
#[derive(Clone)]
struct AppState {}
fn assert_from_request()
where
Extractor: axum::extract::FromRequest<AppState, Rejection = axum::response::Response>,
{
}
fn main() {}