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

17 lines
276 B
Rust
Raw Normal View History

use axum::Extension;
use axum_macros::FromRequestParts;
#[derive(FromRequestParts)]
struct Extractor(#[from_request(via(Extension))] State);
#[derive(Clone)]
struct State;
fn assert_from_request()
where
Extractor: axum::extract::FromRequestParts<()>,
{
}
fn main() {}