mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
13 lines
348 B
Rust
13 lines
348 B
Rust
#![deny(clippy::implicit_hasher)]
|
|
|
|
//@no-rustfix: need to change the suggestion to a multipart suggestion
|
|
|
|
use std::collections::HashSet;
|
|
|
|
fn main() {}
|
|
|
|
pub fn ice_3717(_: &HashSet<usize>) {
|
|
//~^ ERROR: parameter of type `HashSet` should be generalized over different hashers
|
|
let _ = [0u8; 0];
|
|
let _: HashSet<usize> = HashSet::new();
|
|
}
|