2021-07-02 11:30:20 -05:00
|
|
|
error[E0753]: expected outer doc comment
|
2021-08-23 05:49:31 -05:00
|
|
|
--> $DIR/issue-86781-bad-inner-doc.rs:7:1
|
2021-07-02 11:30:20 -05:00
|
|
|
|
|
|
|
|
LL | //! Inner doc comment
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2021-08-23 05:49:31 -05:00
|
|
|
...
|
|
|
|
LL | pub struct Foo;
|
|
|
|
| --------------- the inner doc comment doesn't annotate this struct
|
2021-07-02 11:30:20 -05:00
|
|
|
|
|
2021-08-23 05:49:31 -05:00
|
|
|
help: to annotate the struct, change the doc comment from inner to outer style
|
|
|
|
|
|
|
|
|
LL | /// Inner doc comment
|
|
|
|
| ~
|
2021-07-02 11:30:20 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0753`.
|