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-26 00:00:23 +02:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
ca24460fac17536fc4a5ef1fbc4f43ee5f401421
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