summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-48636.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issues/issue-48636.rs')
-rw-r--r--tests/ui/parser/issues/issue-48636.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-48636.rs b/tests/ui/parser/issues/issue-48636.rs
new file mode 100644
index 000000000..8610dc2f7
--- /dev/null
+++ b/tests/ui/parser/issues/issue-48636.rs
@@ -0,0 +1,12 @@
+// run-rustfix
+
+#![allow(dead_code)]
+
+struct S {
+ x: u8
+ /// The ID of the parent core
+ y: u8,
+}
+//~^^^ ERROR found a documentation comment that doesn't document anything
+
+fn main() {}