axum/axum-macros/tests/from_request/fail/parts_extracting_body.rs
2023-09-29 09:25:26 +02:00

15 lines
270 B
Rust

#![feature(diagnostic_namespace)]
use axum::{extract::FromRequestParts, response::Response};
#[derive(FromRequestParts)]
struct Extractor {
body: String,
}
fn assert_from_request()
where
Extractor: FromRequestParts<(), Rejection = Response>,
{
}
fn main() {}