about summary refs log tree commit diff
path: root/tests/ui/parser/doc-after-struct-field.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/doc-after-struct-field.stderr')
-rw-r--r--tests/ui/parser/doc-after-struct-field.stderr19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/ui/parser/doc-after-struct-field.stderr b/tests/ui/parser/doc-after-struct-field.stderr
new file mode 100644
index 00000000000..ae177f1a2d1
--- /dev/null
+++ b/tests/ui/parser/doc-after-struct-field.stderr
@@ -0,0 +1,19 @@
+error[E0585]: found a documentation comment that doesn't document anything
+  --> $DIR/doc-after-struct-field.rs:2:11
+   |
+LL |     a: u8 /** document a */,
+   |           ^^^^^^^^^^^^^^^^^
+   |
+   = help: doc comments must come before what they document, if a comment was intended use `//`
+
+error[E0585]: found a documentation comment that doesn't document anything
+  --> $DIR/doc-after-struct-field.rs:8:11
+   |
+LL |     a: u8 /// document a
+   |           ^^^^^^^^^^^^^^
+   |
+   = help: doc comments must come before what they document, if a comment was intended use `//`
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0585`.