1
0
Fork 0
mirror of https://github.com/tokio-rs/axum.git synced 2025-01-27 18:29:06 +01:00
axum/axum-macros/tests/from_request/fail/enum_no_via.rs
David Pedersen 852e548e19
Support #[derive(FromRequest)] on enums ()
* Support `#[from_request(via(...))]` on enums

* Check `#[from_request]` on variants

* check for non enum/struct and clean up

* changelog

* changelog

* remove needless feature

* changelog ref
2022-05-08 20:04:56 +02:00

6 lines
93 B
Rust

use axum_macros::FromRequest;
#[derive(FromRequest, Clone)]
enum Extractor {}
fn main() {}