]> git.proxmox.com Git - rustc.git/blob - tests/ui/parser/doc-comment-in-stmt.stderr
New upstream version 1.75.0+dfsg1
[rustc.git] / tests / 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:5: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 write 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:11: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 write 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:15:7
29 |
30 LL | 1 /** baz */
31 | ^^^^^^^^^^ expected one of `.`, `;`, `?`, `}`, or an operator
32 |
33 help: add a space before the last `*` to write 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:19:7
40 |
41 LL | 2 /// quux
42 | ^^^^^^^^ expected one of `.`, `;`, `?`, `}`, or an operator
43 |
44 help: add a space before the last `/` to write a regular comment
45 |
46 LL | 2 // / quux
47 | +
48
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
61