1- error: expected one of `(`, `,`, `=`, `{`, or `}`, found doc comment `/// Like where people drink`
1+ error[E0585]: found a documentation comment that doesn't document anything
22 --> $DIR/doc-comment-after-missing-comma-issue-142311.rs:10:5
33 |
44LL | Bar
55 | - expected one of `(`, `,`, `=`, `{`, or `}`
66LL | /// Like where people drink
7- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected token
7+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
8+ | |
9+ | this doc comment doesn't document anything
10+ | unexpected token
811 |
912help: missing `,` before the doc comment
1013 |
1114LL | Bar,
1215 | +
1316
14- error: expected one of `(`, `,`, `=`, `{`, or `}`, found doc comment `///xxxxxx`
17+ error[E0585]: found a documentation comment that doesn't document anything
1518 --> $DIR/doc-comment-after-missing-comma-issue-142311.rs:12:8
1619 |
1720LL | Baa///xxxxxx
18- | ^^^^^^^^^ expected one of `(`, `,`, `=`, `{`, or `}`
21+ | ^^^^^^^^^
22+ | |
23+ | this doc comment doesn't document anything
24+ | expected one of `(`, `,`, `=`, `{`, or `}`
1925 |
2026help: missing `,` before the doc comment
2127 |
2228LL | Baa, ///xxxxxx
2329 | +
2430
25- error: expected one of `(`, `,`, `=`, `{`, or `}`, found doc comment `///xxxxxx`
31+ error[E0585]: found a documentation comment that doesn't document anything
2632 --> $DIR/doc-comment-after-missing-comma-issue-142311.rs:14:8
2733 |
2834LL | Baz///xxxxxx
29- | ^^^^^^^^^ expected one of `(`, `,`, `=`, `{`, or `}`
35+ | ^^^^^^^^^
36+ | |
37+ | this doc comment doesn't document anything
38+ | expected one of `(`, `,`, `=`, `{`, or `}`
3039 |
3140 = help: doc comments must come before what they document, if a comment was intended use `//`
3241 = help: enum variants can be `Variant`, `Variant = <integer>`, `Variant(Type, ..., TypeN)` or `Variant { fields: Types }`
@@ -37,3 +46,4 @@ LL | Baz, ///xxxxxx
3746
3847error: aborting due to 3 previous errors
3948
49+ For more information about this error, try `rustc --explain E0585`.
0 commit comments