Files
axum/axum-macros/tests/from_request/pass/tuple_via.rs
T
a4b7d3843c Remove B type param (#1751)
Co-authored-by: Jonas Platte <[email protected]>
Co-authored-by: Michael Scofield <[email protected]>
2023-03-23 20:22:35 +01:00

17 lines
261 B
Rust

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