This website requires JavaScript.
Explore
Help
Sign In
tokio-rs
/
axum
Watch
1
Star
0
Fork
0
mirror of
https://github.com/tokio-rs/axum.git
synced
2026-08-23 00:00:15 +02:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
c6e6b4ea32f4e052d0f169cc666a6c885e006f13
axum
/
axum-macros
/
tests
/
from_ref
/
fail
/
generics.rs
T
9 lines
104 B
Rust
Raw
Normal View
History
Unescape
Escape
Give better error if generics are used with #[derive(FromRef)] (
#1874
)
2023-03-22 14:48:27 +01:00
use
axum
::
extract
::
FromRef
;
#[derive(Clone, FromRef)]
struct
AppState
<
T
>
{
foo
:
T
,
}
fn
main
()
{}
Reference in New Issue
Copy Permalink