mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
12 lines
322 B
Rust
12 lines
322 B
Rust
|
#![deny(clippy::implicit_hasher)]
|
||
|
|
||
|
use std::collections::HashSet;
|
||
|
|
||
|
fn main() {}
|
||
|
|
||
|
pub fn ice_3717<S: ::std::hash::BuildHasher + Default>(_: &HashSet<usize, S>) {
|
||
|
//~^ ERROR: parameter of type `HashSet` should be generalized over different hashers
|
||
|
let _ = [0u8; 0];
|
||
|
let _: HashSet<usize> = HashSet::default();
|
||
|
}
|