fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
794 B25 linesraw
1error[E0753]: 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
8help: you might have meant to write a regular comment
9   |
10LL -     if true /*!*/ {}
11LL +     if true /**/ {}
12   |
13
14error: outer attributes are not allowed on `if` and `else` branches
15  --> $DIR/doc-comment-in-if-statement.rs:2:13
16   |
17LL |     if true /*!*/ {}
18   |     --      ^^^^^ -- the attributes are attached to this branch
19   |     |       |
20   |     |       help: remove the attributes
21   |     the branch belongs to this `if`
22
23error: aborting due to 2 previous errors
24
25For more information about this error, try `rustc --explain E0753`.