rust-clippy/tests/ui/doc/needless_doctest_main.rs
2023-06-14 12:31:49 +09:00

19 lines
319 B
Rust

#![warn(clippy::needless_doctest_main)]
//! issue 10491:
//! ```rust,no_test
//! use std::collections::HashMap;
//!
//! fn main() {
//! let mut m = HashMap::new();
//! m.insert(1u32, 2u32);
//! }
//! ```
//!
/// some description here
/// ```rust,no_test
/// fn main() {
/// foo()
/// }
/// ```
fn foo() {}