]> git.lizzy.rs Git - rust.git/blob - config_proc_macro/tests/smoke.rs
Release v1.4.10
[rust.git] / config_proc_macro / tests / smoke.rs
1 pub mod config {
2     pub trait ConfigType: Sized {
3         fn doc_hint() -> String;
4     }
5 }
6
7 #[allow(dead_code)]
8 #[allow(unused_imports)]
9 mod tests {
10     use rustfmt_config_proc_macro::config_type;
11
12     #[config_type]
13     enum Bar {
14         Foo,
15         Bar,
16         #[doc_hint = "foo_bar"]
17         FooBar,
18         FooFoo(i32),
19     }
20 }