mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-22 19:13:29 +00:00
21 lines
329 B
Rust
21 lines
329 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() {}
|
||
|
|
||
|
fn main() {}
|