]>
Commit | Line | Data |
---|---|---|
ba9703b0 | 1 | error: expected outer doc comment |
a1dfa0c6 XL |
2 | --> $DIR/doc-comment-in-if-statement.rs:2:13 |
3 | | | |
4 | LL | if true /*!*/ {} | |
ba9703b0 XL |
5 | | ^^^^^ |
6 | | | |
7 | = note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items | |
8 | ||
9 | error: outer attributes are not allowed on `if` and `else` branches | |
10 | --> $DIR/doc-comment-in-if-statement.rs:2:13 | |
11 | | | |
12 | LL | if true /*!*/ {} | |
13 | | -- ^^^^^ -- the attributes are attached to this branch | |
14 | | | | | |
15 | | | help: remove the attributes | |
16 | | the branch belongs to this `if` | |
a1dfa0c6 | 17 | |
ba9703b0 | 18 | error: aborting due to 2 previous errors |
a1dfa0c6 | 19 |