mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 20:06:38 +00:00
17 lines
302 B
Rust
17 lines
302 B
Rust
//! Test expansion of enums which have struct variants.
|
|
|
|
#[macro_use]
|
|
extern crate darling;
|
|
extern crate syn;
|
|
|
|
#[derive(Debug, FromMeta)]
|
|
#[darling(rename_all = "snake_case")]
|
|
enum Message {
|
|
Hello { user: String, silent: bool },
|
|
Ping,
|
|
Goodbye { user: String },
|
|
}
|
|
|
|
#[test]
|
|
fn expansion() {}
|