about summary refs log tree commit diff
path: root/tests/rustdoc-ui/nested-macro-rules-47639.rs
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-11-23 14:54:19 -0700
committerMichael Howell <michael@notriddle.com>2023-11-23 14:54:19 -0700
commitfdde5c77a834c8275c23648ddaca9c18adee07d4 (patch)
treece5fe3b5b462dc47b86af655c5c13e249f6c2aaa /tests/rustdoc-ui/nested-macro-rules-47639.rs
parentcbe68435c603da438b8994c1a583b46fc01821cf (diff)
downloadrust-fdde5c77a834c8275c23648ddaca9c18adee07d4.tar.gz
rust-fdde5c77a834c8275c23648ddaca9c18adee07d4.zip
rustdoc: move ICE tests to ui
Diffstat (limited to 'tests/rustdoc-ui/nested-macro-rules-47639.rs')
-rw-r--r--tests/rustdoc-ui/nested-macro-rules-47639.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/nested-macro-rules-47639.rs b/tests/rustdoc-ui/nested-macro-rules-47639.rs
new file mode 100644
index 00000000000..210b1e79cd2
--- /dev/null
+++ b/tests/rustdoc-ui/nested-macro-rules-47639.rs
@@ -0,0 +1,9 @@
+// check-pass
+// This should not ICE
+
+// https://github.com/rust-lang/rust/issues/47639
+pub fn test() {
+    macro_rules! foo {
+        () => ()
+    }
+}