]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/issue-86781-bad-inner-doc.stderr
Rollup merge of #106788 - estebank:elaborate_pred_E0599, r=compiler-errors
[rust.git] / tests / ui / proc-macro / issue-86781-bad-inner-doc.stderr
1 error[E0753]: expected outer doc comment
2   --> $DIR/issue-86781-bad-inner-doc.rs:7:1
3    |
4 LL | //! Inner doc comment
5    | ^^^^^^^^^^^^^^^^^^^^^
6 ...
7 LL | pub struct Foo;
8    | --------------- the inner doc comment doesn't annotate this struct
9    |
10 help: to annotate the struct, change the doc comment from inner to outer style
11    |
12 LL | /// Inner doc comment
13    |   ~
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0753`.