serde/test_suite/tests/ui/transparent/ser_at_least_one.rs
David Tolnay 58b3af4c29
Copyright/license headers
The following changes are included:

- Delete per-file license notices at the top of each file.
- Delete the first paragraph of LICENSE-MIT (an inaccurate
  pseudo-copyright line), leaving only the text of the MIT license.

Nothing about the license of Serde code has changed, only our
understanding of how to correctly communicate that license has changed.

This mirrors an equivalent change being applied in the rust-lang/rust
repository.
2018-11-24 15:53:09 -08:00

12 lines
141 B
Rust

#[macro_use]
extern crate serde_derive;
#[derive(Serialize)]
#[serde(transparent)]
struct S {
#[serde(skip)]
a: u8,
}
fn main() {}