serde/test_suite/tests/ui/rename/variant_unknown_rename_rule.rs

14 lines
193 B
Rust
Raw Normal View History

2018-12-31 20:36:59 -06:00
use serde_derive::Serialize;
#[derive(Serialize)]
enum S {
#[serde(rename_all = "abc")]
V {
name: u8,
long_name: u8,
very_long_name: u8,
},
}
fn main() {}