2018-11-24 15:37:35 -08:00
|
|
|
error: #[serde(getter = "...")] can only be used in structs that have #[serde(remote = "...")]
|
2018-12-31 21:36:59 -05:00
|
|
|
--> $DIR/nonremote_getter.rs:4:1
|
2018-11-24 15:52:15 -08:00
|
|
|
|
|
2018-12-31 21:36:59 -05:00
|
|
|
4 | / struct S {
|
|
|
|
5 | | #[serde(getter = "S::get")]
|
|
|
|
6 | | a: u8,
|
|
|
|
7 | | }
|
2018-11-29 08:01:17 +02:00
|
|
|
| |_^
|