2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2024-12-26 04:53:31 +00:00
rust-clippy/tests/ui/crashes/ice-3717.rs

11 lines
276 B
Rust

#![deny(clippy::implicit_hasher)]
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();
}