serde/test_suite/tests/ui/transparent/de_at_least_one.stderr

12 lines
294 B
Plaintext
Raw Normal View History

error: #[serde(transparent)] requires at least one field that is neither skipped nor has a default
2018-12-31 20:36:59 -06:00
--> $DIR/de_at_least_one.rs:4:1
|
2018-12-31 20:36:59 -06:00
4 | / #[serde(transparent)]
5 | | struct S {
6 | | #[serde(skip)]
7 | | a: u8,
8 | | #[serde(default)]
9 | | b: u8,
10 | | }
| |_^