summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/config_proc_macro/tests/smoke.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/config_proc_macro/tests/smoke.rs')
-rw-r--r--src/tools/rustfmt/config_proc_macro/tests/smoke.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tools/rustfmt/config_proc_macro/tests/smoke.rs b/src/tools/rustfmt/config_proc_macro/tests/smoke.rs
new file mode 100644
index 000000000..940a8a0c2
--- /dev/null
+++ b/src/tools/rustfmt/config_proc_macro/tests/smoke.rs
@@ -0,0 +1,20 @@
+pub mod config {
+ pub trait ConfigType: Sized {
+ fn doc_hint() -> String;
+ }
+}
+
+#[allow(dead_code)]
+#[allow(unused_imports)]
+mod tests {
+ use rustfmt_config_proc_macro::config_type;
+
+ #[config_type]
+ enum Bar {
+ Foo,
+ Bar,
+ #[doc_hint = "foo_bar"]
+ FooBar,
+ FooFoo(i32),
+ }
+}