2020-03-05 10:42:56 +00:00
|
|
|
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
|
|
|
|
|
2018-10-28 23:05:07 +00:00
|
|
|
error: expected `{`, found doc comment `/*!*/`
|
|
|
|
--> $DIR/doc-comment-in-if-statement.rs:2:13
|
|
|
|
|
|
|
|
|
LL | if true /*!*/ {}
|
2020-03-05 10:42:56 +00:00
|
|
|
| -- ^^^^^ -- 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
|
2018-10-28 23:05:07 +00:00
|
|
|
|
2020-03-05 10:42:56 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2018-10-28 23:05:07 +00:00
|
|
|
|