summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/doc-inside-trait-item.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/doc-inside-trait-item.stderr')
-rw-r--r--tests/ui/parser/doc-inside-trait-item.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/parser/doc-inside-trait-item.stderr b/tests/ui/parser/doc-inside-trait-item.stderr
new file mode 100644
index 000000000..900124adc
--- /dev/null
+++ b/tests/ui/parser/doc-inside-trait-item.stderr
@@ -0,0 +1,11 @@
+error[E0584]: found a documentation comment that doesn't document anything
+ --> $DIR/doc-inside-trait-item.rs:3:5
+ |
+LL | /// empty doc
+ | ^^^^^^^^^^^^^ this doc comment doesn't document anything
+ |
+ = help: doc comments must come before what they document, if a comment was intended use `//`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0584`.