2020-04-22 04:09:57 -05:00
|
|
|
error[E0753]: expected outer doc comment
|
2020-03-05 04:42:56 -06:00
|
|
|
--> $DIR/doc-comment-in-if-statement.rs:2:13
|
|
|
|
|
|
|
|
|
LL | if true /*!*/ {}
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
|
2021-08-23 05:49:31 -05:00
|
|
|
help: you might have meant to write a regular comment
|
|
|
|
|
|
|
|
|
LL - if true /*!*/ {}
|
|
|
|
LL + if true /**/ {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2020-03-05 04:42:56 -06:00
|
|
|
|
2020-03-07 10:16:29 -06:00
|
|
|
error: outer attributes are not allowed on `if` and `else` branches
|
2018-10-28 18:05:07 -05:00
|
|
|
--> $DIR/doc-comment-in-if-statement.rs:2:13
|
|
|
|
|
|
|
|
|
LL | if true /*!*/ {}
|
2020-03-07 10:16:29 -06:00
|
|
|
| -- ^^^^^ -- the attributes are attached to this branch
|
2020-03-05 04:42:56 -06:00
|
|
|
| | |
|
2020-03-07 10:16:29 -06:00
|
|
|
| | help: remove the attributes
|
|
|
|
| the branch belongs to this `if`
|
2018-10-28 18:05:07 -05:00
|
|
|
|
2020-03-05 04:42:56 -06:00
|
|
|
error: aborting due to 2 previous errors
|
2018-10-28 18:05:07 -05:00
|
|
|
|
2020-04-22 04:09:57 -05:00
|
|
|
For more information about this error, try `rustc --explain E0753`.
|