2020-04-22 09:09:57 +00:00
|
|
|
error[E0753]: expected outer doc comment
|
2020-03-05 10:42:56 +00: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 10:49:31 +00:00
|
|
|
help: you might have meant to write a regular comment
|
|
|
|
|
|
|
|
|
LL - if true /*!*/ {}
|
|
|
|
LL + if true /**/ {}
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2020-03-05 10:42:56 +00:00
|
|
|
|
2020-03-07 16:16:29 +00:00
|
|
|
error: outer attributes are not allowed on `if` and `else` branches
|
2018-10-28 23:05:07 +00:00
|
|
|
--> $DIR/doc-comment-in-if-statement.rs:2:13
|
|
|
|
|
|
|
|
|
LL | if true /*!*/ {}
|
2020-03-07 16:16:29 +00:00
|
|
|
| -- ^^^^^ -- the attributes are attached to this branch
|
2020-03-05 10:42:56 +00:00
|
|
|
| | |
|
2020-03-07 16:16:29 +00:00
|
|
|
| | help: remove the attributes
|
|
|
|
| the branch belongs to this `if`
|
2018-10-28 23:05:07 +00:00
|
|
|
|
2020-03-05 10:42:56 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2018-10-28 23:05:07 +00:00
|
|
|
|
2020-04-22 09:09:57 +00:00
|
|
|
For more information about this error, try `rustc --explain E0753`.
|