2018-11-24 17:37:35 -06:00
|
|
|
error: #[serde(getter = "...")] is not allowed in an enum
|
2021-10-08 01:46:15 -05:00
|
|
|
--> tests/ui/remote/enum_getter.rs:10:1
|
2018-11-24 17:37:35 -06:00
|
|
|
|
|
2018-12-31 20:36:59 -06:00
|
|
|
10 | / #[serde(remote = "remote::E")]
|
|
|
|
11 | | pub enum E {
|
|
|
|
12 | | A {
|
|
|
|
13 | | #[serde(getter = "get_a")]
|
|
|
|
14 | | a: u8,
|
|
|
|
15 | | },
|
|
|
|
16 | | }
|
2018-11-29 00:01:17 -06:00
|
|
|
| |_^
|