summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/doc-inside-trait-item.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/doc-inside-trait-item.rs')
-rw-r--r--tests/ui/parser/doc-inside-trait-item.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/parser/doc-inside-trait-item.rs b/tests/ui/parser/doc-inside-trait-item.rs
new file mode 100644
index 000000000..87b501bd2
--- /dev/null
+++ b/tests/ui/parser/doc-inside-trait-item.rs
@@ -0,0 +1,6 @@
+trait User{
+ fn test();
+ /// empty doc
+ //~^ ERROR found a documentation comment that doesn't document anything
+}
+fn main() {}