summaryrefslogtreecommitdiffstats
path: root/third_party/rust/darling/tests/enums_unit.rs
blob: f9eb23f24571cdc318d951f97e40cdbb50e9cc81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Test expansion of enum variants which have no associated data.

#[macro_use]
extern crate darling;
extern crate syn;

#[derive(Debug, FromMeta)]
#[darling(rename_all = "snake_case")]
enum Pattern {
    Owned,
    Immutable,
    Mutable,
}

#[test]
fn expansion() {}