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

16 lines
270 B
Rust
Raw Normal View History

2023-09-29 09:25:26 +02:00
#![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() {}