about summary refs log tree commit diff
path: root/tests/rustdoc/use-attr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/use-attr.rs')
-rw-r--r--tests/rustdoc/use-attr.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/rustdoc/use-attr.rs b/tests/rustdoc/use-attr.rs
new file mode 100644
index 00000000000..996b7bba621
--- /dev/null
+++ b/tests/rustdoc/use-attr.rs
@@ -0,0 +1,8 @@
+// edition:2018
+
+// ICE when rustdoc encountered a use statement of a non-macro attribute (see #58054)
+
+// @has use_attr/index.html
+// @has - '//code' 'pub use proc_macro_attribute'
+pub use proc_macro_attribute;
+use proc_macro_derive;