2023-03-10 09:51:03 +01:00
|
|
|
error[E0277]: the trait bound `for<'de> Struct: serde::de::Deserialize<'de>` is not satisfied
|
|
|
|
--> tests/debug_handler/fail/json_not_deserialize.rs:7:23
|
|
|
|
|
|
|
|
|
7 | async fn handler(foo: Json<Struct>) {}
|
|
|
|
| ^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `Struct`
|
|
|
|
|
|
|
|
|
= help: the following other types implement trait `serde::de::Deserialize<'de>`:
|
|
|
|
&'a [u8]
|
|
|
|
&'a serde_json::raw::RawValue
|
|
|
|
&'a std::path::Path
|
|
|
|
&'a str
|
|
|
|
()
|
|
|
|
(T0, T1)
|
|
|
|
(T0, T1, T2)
|
|
|
|
(T0, T1, T2, T3)
|
|
|
|
and $N others
|
|
|
|
= note: required for `Struct` to implement `serde::de::DeserializeOwned`
|
2023-03-12 16:37:32 +01:00
|
|
|
= note: required for `Json<Struct>` to implement `FromRequest<()>`
|
2023-03-10 09:51:03 +01:00
|
|
|
= help: see issue #48214
|
|
|
|
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|