]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/doc-comment-in-stmt.stderr
Merge commit '8f1ebdd18bdecc621f16baaf779898cc08cc2766' into clippyup
[rust.git] / src / test / ui / parser / doc-comment-in-stmt.stderr
1 error: expected one of `.`, `;`, `?`, `}`, or an operator, found doc comment `//!self.allow_ty_infer()`
2   --> $DIR/doc-comment-in-stmt.rs:3:5
3    |
4 LL |     false
5    |          - expected one of `.`, `;`, `?`, `}`, or an operator
6 LL |     //!self.allow_ty_infer()
7    |     ^^^^^^^^^^^^^^^^^^^^^^^^ unexpected token
8    |
9 help: add a space before `!` to use a regular comment
10    |
11 LL |     // !self.allow_ty_infer()
12    |     ~~~~
13
14 error: expected one of `.`, `;`, `?`, `}`, or an operator, found doc comment `/*! bar */`
15   --> $DIR/doc-comment-in-stmt.rs:9:5
16    |
17 LL |     false
18    |          - expected one of `.`, `;`, `?`, `}`, or an operator
19 LL |     /*! bar */
20    |     ^^^^^^^^^^ unexpected token
21    |
22 help: add a space before `!` to use a regular comment
23    |
24 LL |     /* ! bar */
25    |     ~~~~
26
27 error: expected one of `.`, `;`, `?`, `}`, or an operator, found doc comment `/** baz */`
28   --> $DIR/doc-comment-in-stmt.rs:13:7
29    |
30 LL |     1 /** baz */
31    |       ^^^^^^^^^^ expected one of `.`, `;`, `?`, `}`, or an operator
32    |
33 help: add a space before `*` to use a regular comment
34    |
35 LL |     1 /* * baz */
36    |       ~~~~
37
38 error: expected one of `.`, `;`, `?`, `}`, or an operator, found doc comment `/*! quux */`
39   --> $DIR/doc-comment-in-stmt.rs:17:7
40    |
41 LL |     2 /*! quux */
42    |       ^^^^^^^^^^^ expected one of `.`, `;`, `?`, `}`, or an operator
43    |
44 help: add a space before `!` to use a regular comment
45    |
46 LL |     2 /* ! quux */
47    |       ~~~~
48
49 error: aborting due to 4 previous errors
50