fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
604 B19 linesraw
1error: expected outer doc comment
2  --> $DIR/doc-comment-in-if-statement.rs:2:13
3   |
4LL |     if true /*!*/ {}
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`
17
18error: aborting due to 2 previous errors
19