2018-11-24 17:37:35 -06:00
|
|
|
error: #[serde(transparent)] requires struct to have at most one transparent field
|
2021-10-08 01:46:15 -05:00
|
|
|
--> tests/ui/transparent/at_most_one.rs:4:1
|
2018-11-24 17:52:15 -06:00
|
|
|
|
|
2018-12-31 20:36:59 -06:00
|
|
|
4 | / #[serde(transparent)]
|
|
|
|
5 | | struct S {
|
|
|
|
6 | | a: u8,
|
|
|
|
7 | | b: u8,
|
|
|
|
8 | | }
|
2018-11-29 00:01:17 -06:00
|
|
|
| |_^
|