rust/src/test/ui/parser/doc-comment-in-if-statement.stderr

20 lines
597 B
Plaintext
Raw Normal View History

error: expected outer doc comment
--> $DIR/doc-comment-in-if-statement.rs:2:13
|
LL | if true /*!*/ {}
| ^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
error: expected `{`, found doc comment `/*!*/`
--> $DIR/doc-comment-in-if-statement.rs:2:13
|
LL | if true /*!*/ {}
| -- ^^^^^ -- help: try placing this code inside a block: `{ {} }`
| | |
| | expected `{`
2019-12-06 22:23:30 +00:00
| this `if` expression has a condition, but no block
error: aborting due to 2 previous errors