]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/doc-comment-in-if-statement.stderr
Change syntax for TyAlias where clauses
[rust.git] / src / test / ui / parser / doc-comment-in-if-statement.stderr
1 error[E0753]: expected outer doc comment
2   --> $DIR/doc-comment-in-if-statement.rs:2:13
3    |
4 LL |     if true /*!*/ {}
5    |             ^^^^^
6    |
7    = note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
8 help: you might have meant to write a regular comment
9    |
10 LL -     if true /*!*/ {}
11 LL +     if true /**/ {}
12    | 
13
14 error: outer attributes are not allowed on `if` and `else` branches
15   --> $DIR/doc-comment-in-if-statement.rs:2:13
16    |
17 LL |     if true /*!*/ {}
18    |     --      ^^^^^ -- the attributes are attached to this branch
19    |     |       |
20    |     |       help: remove the attributes
21    |     the branch belongs to this `if`
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0753`.