@@ -2,33 +2,21 @@ error: expected one of `(`, `,`, `=`, `{`, or `}`, found doc comment `/// Like w
2
2
--> $DIR/doc-comment-after-missing-comma-issue-142311.rs:10:5
3
3
|
4
4
LL | Bar
5
- | - expected one of `(`, `,`, `=`, `{`, or `}`
5
+ | -
6
+ | |
7
+ | expected one of `(`, `,`, `=`, `{`, or `}`
8
+ | help: missing `,`
6
9
LL | /// Like where people drink
7
10
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected token
8
- |
9
- help: add a space before the last `/` to write a regular comment
10
- |
11
- LL | // / Like where people drink
12
- | +
13
- help: missing `,`
14
- |
15
- LL | Bar,
16
- | +
17
11
18
12
error: expected one of `(`, `,`, `=`, `{`, or `}`, found doc comment `///xxxxxx`
19
13
--> $DIR/doc-comment-after-missing-comma-issue-142311.rs:12:8
20
14
|
21
15
LL | Baa///xxxxxx
22
- | ^^^^^^^^^ expected one of `(`, `,`, `=`, `{`, or `}`
23
- |
24
- help: add a space before the last `/` to write a regular comment
25
- |
26
- LL | Baa// /xxxxxx
27
- | +
28
- help: missing `,`
29
- |
30
- LL | Baa,///xxxxxx
31
- | +
16
+ | -^^^^^^^^
17
+ | |
18
+ | expected one of `(`, `,`, `=`, `{`, or `}`
19
+ | help: missing `,`
32
20
33
21
error: expected one of `(`, `,`, `=`, `{`, or `}`, found doc comment `///xxxxxx`
34
22
--> $DIR/doc-comment-after-missing-comma-issue-142311.rs:14:8
@@ -38,32 +26,18 @@ LL | Baz///xxxxxx
38
26
|
39
27
= help: doc comments must come before what they document, if a comment was intended use `//`
40
28
= help: enum variants can be `Variant`, `Variant = <integer>`, `Variant(Type, ..., TypeN)` or `Variant { fields: Types }`
41
- help: add a space before the last `/` to write a regular comment
42
- |
43
- LL | Baz// /xxxxxx
44
- | +
45
29
46
30
error: expected one of `,`, `.`, `;`, `?`, `]`, or an operator, found doc comment `///xxxxxx`
47
31
--> $DIR/doc-comment-after-missing-comma-issue-142311.rs:20:10
48
32
|
49
33
LL | 1///xxxxxx
50
34
| ^^^^^^^^^ expected one of `,`, `.`, `;`, `?`, `]`, or an operator
51
- |
52
- help: add a space before the last `/` to write a regular comment
53
- |
54
- LL | 1// /xxxxxx
55
- | +
56
35
57
36
error: expected one of `,`, `.`, `?`, `]`, or an operator, found doc comment `///xxxxxx`
58
37
--> $DIR/doc-comment-after-missing-comma-issue-142311.rs:29:10
59
38
|
60
39
LL | 2///xxxxxx
61
40
| ^^^^^^^^^ expected one of `,`, `.`, `?`, `]`, or an operator
62
- |
63
- help: add a space before the last `/` to write a regular comment
64
- |
65
- LL | 2// /xxxxxx
66
- | +
67
41
68
42
error: aborting due to 5 previous errors
69
43
0 commit comments