2020-03-05 04:42:56 -06: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
|
|
|
|
|
2020-03-07 10:16:29 -06:00
|
|
|
error: outer attributes are not allowed on `if` and `else` branches
|
2018-10-28 18:05:07 -05:00
|
|
|
--> $DIR/doc-comment-in-if-statement.rs:2:13
|
|
|
|
|
|
|
|
|
LL | if true /*!*/ {}
|
2020-03-07 10:16:29 -06:00
|
|
|
| -- ^^^^^ -- the attributes are attached to this branch
|
2020-03-05 04:42:56 -06:00
|
|
|
| | |
|
2020-03-07 10:16:29 -06:00
|
|
|
| | help: remove the attributes
|
|
|
|
| the branch belongs to this `if`
|
2018-10-28 18:05:07 -05:00
|
|
|
|
2020-03-05 04:42:56 -06:00
|
|
|
error: aborting due to 2 previous errors
|
2018-10-28 18:05:07 -05:00
|
|
|
|