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
2
2
--> $DIR/doc-comment-after-missing-comma-issue-142311.rs:10:5
3
3
|
4
4
LL | Bar
5
5
| - expected one of `(`, `,`, `=`, `{`, or `}`
6
6
LL | /// Like where people drink
7
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected token
7
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
8
+ | |
9
+ | this doc comment doesn't document anything
10
+ | unexpected token
8
11
|
9
12
help: missing `,` before the doc comment
10
13
|
11
14
LL | Bar,
12
15
| +
13
16
14
- error: expected one of `(`, `,`, `=`, `{`, or `}`, found doc comment `///xxxxxx`
17
+ error[E0585]: found a documentation comment that doesn't document anything
15
18
--> $DIR/doc-comment-after-missing-comma-issue-142311.rs:12:8
16
19
|
17
20
LL | Baa///xxxxxx
18
- | ^^^^^^^^^ expected one of `(`, `,`, `=`, `{`, or `}`
21
+ | ^^^^^^^^^
22
+ | |
23
+ | this doc comment doesn't document anything
24
+ | expected one of `(`, `,`, `=`, `{`, or `}`
19
25
|
20
26
help: missing `,` before the doc comment
21
27
|
22
28
LL | Baa, ///xxxxxx
23
29
| +
24
30
25
- error: expected one of `(`, `,`, `=`, `{`, or `}`, found doc comment `///xxxxxx`
31
+ error[E0585]: found a documentation comment that doesn't document anything
26
32
--> $DIR/doc-comment-after-missing-comma-issue-142311.rs:14:8
27
33
|
28
34
LL | Baz///xxxxxx
29
- | ^^^^^^^^^ expected one of `(`, `,`, `=`, `{`, or `}`
35
+ | ^^^^^^^^^
36
+ | |
37
+ | this doc comment doesn't document anything
38
+ | expected one of `(`, `,`, `=`, `{`, or `}`
30
39
|
31
40
= help: doc comments must come before what they document, if a comment was intended use `//`
32
41
= help: enum variants can be `Variant`, `Variant = <integer>`, `Variant(Type, ..., TypeN)` or `Variant { fields: Types }`
@@ -37,3 +46,4 @@ LL | Baz, ///xxxxxx
37
46
38
47
error: aborting due to 3 previous errors
39
48
49
+ For more information about this error, try `rustc --explain E0585`.
0 commit comments