serde/test_suite/tests/ui/remote/enum_getter.stderr

12 lines
274 B
Plaintext
Raw Normal View History

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-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 | | }
| |_^