Files
axum/axum-macros/tests/from_request/pass/tuple_parts.rs
T

13 lines
227 B
Rust
Raw Normal View History

2022-08-23 21:14:02 +02:00
use axum_macros::FromRequestParts;
#[derive(FromRequestParts)]
struct Extractor(axum::http::HeaderMap, axum::http::Method);
fn assert_from_request()
where
Extractor: axum::extract::FromRequestParts<()>,
{
}
fn main() {}