summaryrefslogtreecommitdiffstats
path: root/third_party/rust/darling/tests/enums_struct.rs
blob: cae4cd5cdc09189fae6f41f901da20c2c61ba856 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![allow(dead_code)]

//! Test expansion of enums which have struct variants.

use darling::FromMeta;
#[derive(Debug, FromMeta)]
#[darling(rename_all = "snake_case")]
enum Message {
    Hello { user: String, silent: bool },
    Ping,
    Goodbye { user: String },
}

#[test]
fn expansion() {}