summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-95267.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/macros/issue-95267.rs')
-rw-r--r--tests/ui/macros/issue-95267.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/macros/issue-95267.rs b/tests/ui/macros/issue-95267.rs
new file mode 100644
index 000000000..a2fe402bc
--- /dev/null
+++ b/tests/ui/macros/issue-95267.rs
@@ -0,0 +1,14 @@
+// check-pass
+
+// The doc comment here is ignored. This is a bug, but #95267 showed that
+// existing programs rely on this behaviour, and changing it would require some
+// care and a transition period.
+macro_rules! f {
+ (
+ /// ab
+ ) => {};
+}
+
+fn main() {
+ f!();
+}