summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/doc-before-extern-rbrace.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/doc-before-extern-rbrace.rs')
-rw-r--r--tests/ui/parser/doc-before-extern-rbrace.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/parser/doc-before-extern-rbrace.rs b/tests/ui/parser/doc-before-extern-rbrace.rs
new file mode 100644
index 000000000..515c90ed4
--- /dev/null
+++ b/tests/ui/parser/doc-before-extern-rbrace.rs
@@ -0,0 +1,6 @@
+fn main() {}
+
+extern "C" {
+ /// hi
+ //~^ ERROR found a documentation comment that doesn't document anything
+}