Files
axum/axum-macros/tests/from_request/fail/generic_without_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

12 lines
219 B
Rust

use axum::{routing::get, Router};
use axum_macros::FromRequest;
#[derive(FromRequest, Clone)]
struct Extractor<T>(T);
async fn foo(_: Extractor<()>) {}
fn main() {
_ = Router::<()>::new().route("/", get(foo));
}