serde/test_suite/tests/ui/conflict/from-try-from.stderr
2019-05-11 23:31:24 -07:00

9 lines
218 B
Plaintext

error: #[serde(from = "...")] and #[serde(try_from = "...")] conflict with each other
--> $DIR/from-try-from.rs:4:1
|
4 | / #[serde(from = "u64", try_from = "u64")]
5 | | struct S {
6 | | a: u8,
7 | | }
| |_^