1 error: expected one of `.`, `;`, `?`, `}`, or an operator, found doc comment `//!self.allow_ty_infer()`
2 --> $DIR/doc-comment-in-stmt.rs:5:5
5 | - expected one of `.`, `;`, `?`, `}`, or an operator
6 LL | //!self.allow_ty_infer()
7 | ^^^^^^^^^^^^^^^^^^^^^^^^ unexpected token
9 help: add a space before `!` to write a regular comment
11 LL | // !self.allow_ty_infer()
14 error: expected one of `.`, `;`, `?`, `}`, or an operator, found doc comment `/*! bar */`
15 --> $DIR/doc-comment-in-stmt.rs:11:5
18 | - expected one of `.`, `;`, `?`, `}`, or an operator
20 | ^^^^^^^^^^ unexpected token
22 help: add a space before `!` to write a regular comment
27 error: expected one of `.`, `;`, `?`, `}`, or an operator, found doc comment `/** baz */`
28 --> $DIR/doc-comment-in-stmt.rs:15:7
31 | ^^^^^^^^^^ expected one of `.`, `;`, `?`, `}`, or an operator
33 help: add a space before the last `*` to write a regular comment
38 error: expected one of `.`, `;`, `?`, `}`, or an operator, found doc comment `/// quux`
39 --> $DIR/doc-comment-in-stmt.rs:19:7
42 | ^^^^^^^^ expected one of `.`, `;`, `?`, `}`, or an operator
44 help: add a space before the last `/` to write a regular comment
49 error: expected one of `.`, `;`, `?`, `else`, or an operator, found doc comment `//!foo
50 --> $DIR/doc-comment-in-stmt.rs:25:22
52 LL | let y = x.max(1) //!foo
53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected one of `.`, `;`, `?`, `else`, or an operator
55 help: add a space before `!` to write a regular comment
57 LL | let y = x.max(1) // !foo
60 error: aborting due to 5 previous errors