serde/test_suite/tests/ui/transparent/with_try_from.stderr

9 lines
223 B
Plaintext
Raw Normal View History

2019-05-12 01:26:42 -05:00
error: #[serde(transparent)] is not allowed with #[serde(try_from = "...")]
2021-10-08 01:46:15 -05:00
--> tests/ui/transparent/with_try_from.rs:4:1
2019-05-12 01:26:42 -05:00
|
4 | / #[serde(transparent, try_from = "u64")]
5 | | struct S {
6 | | a: u8,
7 | | }
| |_^