serde/test_suite/tests/ui/remote/enum_getter.stderr
2018-12-31 21:38:13 -05:00

15 lines
303 B
Plaintext

error: #[serde(getter = "...")] is not allowed in an enum
--> $DIR/enum_getter.rs:10:1
|
10 | / #[serde(remote = "remote::E")]
11 | | pub enum E {
12 | | A {
13 | | #[serde(getter = "get_a")]
14 | | a: u8,
15 | | },
16 | | }
| |_^
error: aborting due to previous error