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

13 lines
167 B
Rust
Raw Normal View History

2018-12-31 20:36:59 -06:00
use serde_derive::Deserialize;
#[derive(Deserialize)]
#[serde(transparent)]
struct S {
#[serde(skip)]
a: u8,
#[serde(default)]
b: u8,
}
fn main() {}