rust/tests/ui/parser/doc-comment-in-if-statement.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
794 B
Plaintext
Raw Normal View History

2020-04-22 09:09:57 +00:00
error[E0753]: expected outer doc comment
--> $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
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-07 16:16:29 +00:00
error: outer attributes are not allowed on `if` and `else` branches
--> $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-07 16:16:29 +00:00
| | help: remove the attributes
| the branch belongs to this `if`
error: aborting due to 2 previous errors
2020-04-22 09:09:57 +00:00
For more information about this error, try `rustc --explain E0753`.