axum/axum-macros/tests/from_request/fail/parts_extracting_body.rs

16 lines
271 B
Rust
Raw Normal View History

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