2023-04-11 13:31:08 +00:00
|
|
|
error: this is an outer doc comment and does not apply to the parent module or crate
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/suspicious_doc_comments.rs:5:1
|
2023-04-11 13:31:08 +00:00
|
|
|
|
|
|
|
|
LL | ///! Fake module documentation.
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::suspicious-doc-comments` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::suspicious_doc_comments)]`
|
2023-04-11 13:31:08 +00:00
|
|
|
help: use an inner doc comment to document the parent module or crate
|
|
|
|
|
|
|
|
|
LL | //! Fake module documentation.
|
|
|
|
|
|
|
|
|
|
|
|
|
error: this is an outer doc comment and does not apply to the parent module or crate
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/suspicious_doc_comments.rs:9:5
|
2023-04-11 13:31:08 +00:00
|
|
|
|
|
|
|
|
LL | ///! This module contains useful functions.
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: use an inner doc comment to document the parent module or crate
|
|
|
|
|
|
|
|
|
LL | //! This module contains useful functions.
|
|
|
|
|
|
|
|
|
|
|
|
|
error: this is an outer doc comment and does not apply to the parent module or crate
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/suspicious_doc_comments.rs:21:5
|
2023-04-11 13:31:08 +00:00
|
|
|
|
|
|
|
|
LL | / /**! This module contains useful functions.
|
|
|
|
LL | | */
|
|
|
|
| |_______^
|
|
|
|
|
|
|
|
|
help: use an inner doc comment to document the parent module or crate
|
|
|
|
|
|
|
|
|
LL ~ /*! This module contains useful functions.
|
|
|
|
LL + */
|
|
|
|
|
|
|
|
|
|
|
|
|
error: this is an outer doc comment and does not apply to the parent module or crate
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/suspicious_doc_comments.rs:35:5
|
2023-04-11 13:31:08 +00:00
|
|
|
|
|
|
|
|
LL | / ///! This module
|
|
|
|
LL | | ///! contains
|
|
|
|
LL | | ///! useful functions.
|
|
|
|
| |__________________________^
|
|
|
|
|
|
|
|
|
help: use an inner doc comment to document the parent module or crate
|
|
|
|
|
|
|
|
|
LL ~ //! This module
|
|
|
|
LL ~ //! contains
|
|
|
|
LL ~ //! useful functions.
|
|
|
|
|
|
|
|
|
|
|
|
|
error: this is an outer doc comment and does not apply to the parent module or crate
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/suspicious_doc_comments.rs:43:5
|
2023-04-11 13:31:08 +00:00
|
|
|
|
|
|
|
|
LL | / ///! a
|
|
|
|
LL | | ///! b
|
|
|
|
| |__________^
|
|
|
|
|
|
|
|
|
help: use an inner doc comment to document the parent module or crate
|
|
|
|
|
|
|
|
|
LL ~ //! a
|
|
|
|
LL ~ //! b
|
|
|
|
|
|
|
|
|
|
|
|
|
error: this is an outer doc comment and does not apply to the parent module or crate
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/suspicious_doc_comments.rs:51:5
|
2023-04-11 13:31:08 +00:00
|
|
|
|
|
|
|
|
LL | ///! a
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
help: use an inner doc comment to document the parent module or crate
|
|
|
|
|
|
|
|
|
LL | //! a
|
|
|
|
|
|
|
|
|
|
|
|
|
error: this is an outer doc comment and does not apply to the parent module or crate
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/suspicious_doc_comments.rs:57:5
|
2023-04-11 13:31:08 +00:00
|
|
|
|
|
|
|
|
LL | / ///! a
|
|
|
|
LL | |
|
|
|
|
LL | | ///! b
|
|
|
|
| |__________^
|
|
|
|
|
|
|
|
|
help: use an inner doc comment to document the parent module or crate
|
|
|
|
|
|
|
|
|
LL ~ //! a
|
|
|
|
LL |
|
|
|
|
LL ~ //! b
|
|
|
|
|
|
|
|
|
|
|
|
|
error: this is an outer doc comment and does not apply to the parent module or crate
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/suspicious_doc_comments.rs:69:5
|
2023-04-11 13:31:08 +00:00
|
|
|
|
|
|
|
|
LL | ///! Very cool macro
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: use an inner doc comment to document the parent module or crate
|
|
|
|
|
|
|
|
|
LL | //! Very cool macro
|
|
|
|
|
|
|
|
|
|
|
|
|
error: this is an outer doc comment and does not apply to the parent module or crate
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/suspicious_doc_comments.rs:76:5
|
2023-04-11 13:31:08 +00:00
|
|
|
|
|
|
|
|
LL | ///! Huh.
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: use an inner doc comment to document the parent module or crate
|
|
|
|
|
|
|
|
|
LL | //! Huh.
|
|
|
|
|
|
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
|
|
|
|