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