Debian Codegraph @

third_party/rust/darling/tests/enums_struct.rs

raw
1 #![allow(dead_code)]
2
3 //! Test expansion of enums which have struct variants.
4
5 use darling::FromMeta;
6 #[derive(Debug, FromMeta)]
7 #[darling(rename_all = "snake_case")]
8 enum Message {
9 Hello { user: String, silent: bool },
10 Ping,
11 Goodbye { user: String },
12 }
13
14 #[test]
15 fn expansion() {}