mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
44 lines
927 B
Text
44 lines
927 B
Text
error: this is an outer doc comment and does not apply to the parent module or crate
|
|
--> tests/ui/suspicious_doc_comments_unfixable.rs:4:1
|
|
|
|
|
LL | / ///! a
|
|
LL | |
|
|
LL | |
|
|
LL | | ///! b
|
|
LL | | /// c
|
|
LL | | ///! d
|
|
| |______^
|
|
|
|
|
= note: `-D clippy::suspicious-doc-comments` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::suspicious_doc_comments)]`
|
|
help: use an inner doc comment to document the parent module or crate
|
|
|
|
|
LL + //! a
|
|
LL |
|
|
LL |
|
|
LL + //! b
|
|
LL | /// c
|
|
LL + //! d
|
|
|
|
|
|
|
error: this is an outer doc comment and does not apply to the parent module or crate
|
|
--> tests/ui/suspicious_doc_comments_unfixable.rs:12:1
|
|
|
|
|
LL | / ///! a
|
|
LL | |
|
|
LL | | ///! b
|
|
LL | | /// c
|
|
LL | | ///! d
|
|
| |______^
|
|
|
|
|
help: use an inner doc comment to document the parent module or crate
|
|
|
|
|
LL + //! a
|
|
LL |
|
|
LL + //! b
|
|
LL | /// c
|
|
LL + //! d
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|