summary refs log tree commit diff
path: root/tests/ui/attributes/auxiliary
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/attributes/auxiliary')
-rw-r--r--tests/ui/attributes/auxiliary/derive_macro_with_helper.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/attributes/auxiliary/derive_macro_with_helper.rs b/tests/ui/attributes/auxiliary/derive_macro_with_helper.rs
new file mode 100644
index 00000000000..128af50ce36
--- /dev/null
+++ b/tests/ui/attributes/auxiliary/derive_macro_with_helper.rs
@@ -0,0 +1,8 @@
+extern crate proc_macro;
+
+use proc_macro::TokenStream;
+
+#[proc_macro_derive(Derive, attributes(arg))]
+pub fn derive(_: TokenStream) -> TokenStream {
+    TokenStream::new()
+}