-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messages
Description
This piece of documentation triggers the lint
/// ```txt
/// 1 | fn main() {
/// | __ ^
/// | _________|_|
/// | | |
/// | | this is a pair of parenthesis
/// 2 | | println!("Hello World!")
/// | | |^^^^^^^^^^^^^^| this is a pair of parenthesis
/// | | |_____________||
/// | | |
/// | | this is a string. Hard to see where it starts, uh?
/// 3 | | }
/// | |_^ this is a pair of braces
/// ```
warning: needless `fn main` in doctest
--> src/fmt.rs:207:4
|
207 | /// 1 | fn main() {
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messages