]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/doc-comment-in-if-statement.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / parser / doc-comment-in-if-statement.stderr
CommitLineData
ba9703b0 1error: expected outer doc comment
a1dfa0c6
XL
2 --> $DIR/doc-comment-in-if-statement.rs:2:13
3 |
4LL | if true /*!*/ {}
ba9703b0
XL
5 | ^^^^^
6 |
7 = note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
8
9error: outer attributes are not allowed on `if` and `else` branches
10 --> $DIR/doc-comment-in-if-statement.rs:2:13
11 |
12LL | 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 18error: aborting due to 2 previous errors
a1dfa0c6 19