|
1 | 1 | error: expected one of `.`, `;`, `?`, `}`, or an operator, found doc comment `//!self.allow_ty_infer()`
|
2 |
| - --> $DIR/doc-comment-in-stmt.rs:3:5 |
| 2 | + --> $DIR/doc-comment-in-stmt.rs:5:5 |
3 | 3 | |
|
4 | 4 | LL | false
|
5 | 5 | | - expected one of `.`, `;`, `?`, `}`, or an operator
|
6 | 6 | LL | //!self.allow_ty_infer()
|
7 | 7 | | ^^^^^^^^^^^^^^^^^^^^^^^^ unexpected token
|
8 | 8 | |
|
9 |
| -help: add a space before `!` to use a regular comment |
| 9 | +help: add a space before `!` to write a regular comment |
10 | 10 | |
|
11 | 11 | LL | // !self.allow_ty_infer()
|
12 |
| - | ~~~~ |
| 12 | + | + |
13 | 13 |
|
14 | 14 | error: expected one of `.`, `;`, `?`, `}`, or an operator, found doc comment `/*! bar */`
|
15 |
| - --> $DIR/doc-comment-in-stmt.rs:9:5 |
| 15 | + --> $DIR/doc-comment-in-stmt.rs:11:5 |
16 | 16 | |
|
17 | 17 | LL | false
|
18 | 18 | | - expected one of `.`, `;`, `?`, `}`, or an operator
|
19 | 19 | LL | /*! bar */
|
20 | 20 | | ^^^^^^^^^^ unexpected token
|
21 | 21 | |
|
22 |
| -help: add a space before `!` to use a regular comment |
| 22 | +help: add a space before `!` to write a regular comment |
23 | 23 | |
|
24 | 24 | LL | /* ! bar */
|
25 |
| - | ~~~~ |
| 25 | + | + |
26 | 26 |
|
27 | 27 | error: expected one of `.`, `;`, `?`, `}`, or an operator, found doc comment `/** baz */`
|
28 |
| - --> $DIR/doc-comment-in-stmt.rs:13:7 |
| 28 | + --> $DIR/doc-comment-in-stmt.rs:15:7 |
29 | 29 | |
|
30 | 30 | LL | 1 /** baz */
|
31 | 31 | | ^^^^^^^^^^ expected one of `.`, `;`, `?`, `}`, or an operator
|
32 | 32 | |
|
33 |
| -help: add a space before `*` to use a regular comment |
| 33 | +help: add a space before the last `*` to write a regular comment |
34 | 34 | |
|
35 | 35 | LL | 1 /* * baz */
|
36 |
| - | ~~~~ |
| 36 | + | + |
37 | 37 |
|
38 |
| -error: expected one of `.`, `;`, `?`, `}`, or an operator, found doc comment `/*! quux */` |
39 |
| - --> $DIR/doc-comment-in-stmt.rs:17:7 |
| 38 | +error: expected one of `.`, `;`, `?`, `}`, or an operator, found doc comment `/// quux` |
| 39 | + --> $DIR/doc-comment-in-stmt.rs:19:7 |
40 | 40 | |
|
41 |
| -LL | 2 /*! quux */ |
42 |
| - | ^^^^^^^^^^^ expected one of `.`, `;`, `?`, `}`, or an operator |
| 41 | +LL | 2 /// quux |
| 42 | + | ^^^^^^^^ expected one of `.`, `;`, `?`, `}`, or an operator |
43 | 43 | |
|
44 |
| -help: add a space before `!` to use a regular comment |
| 44 | +help: add a space before the last `/` to write a regular comment |
45 | 45 | |
|
46 |
| -LL | 2 /* ! quux */ |
47 |
| - | ~~~~ |
| 46 | +LL | 2 // / quux |
| 47 | + | + |
48 | 48 |
|
49 |
| -error: aborting due to 4 previous errors |
| 49 | +error: expected one of `.`, `;`, `?`, `else`, or an operator, found doc comment `//!foo |
| 50 | + --> $DIR/doc-comment-in-stmt.rs:25:22 |
| 51 | + | |
| 52 | +LL | let y = x.max(1) //!foo |
| 53 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected one of `.`, `;`, `?`, `else`, or an operator |
| 54 | + | |
| 55 | +help: add a space before `!` to write a regular comment |
| 56 | + | |
| 57 | +LL | let y = x.max(1) // !foo |
| 58 | + | + |
| 59 | + |
| 60 | +error: aborting due to 5 previous errors |
50 | 61 |
|
0 commit comments