mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-30 04:02:42 +01:00
15 lines
270 B
Rust
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() {}
|