2023-07-27 06:40:22 -05:00
|
|
|
#![deny(clippy::implicit_hasher)]
|
|
|
|
|
|
|
|
use std::collections::HashSet;
|
|
|
|
|
|
|
|
fn main() {}
|
|
|
|
|
|
|
|
pub fn ice_3717<S: ::std::hash::BuildHasher + Default>(_: &HashSet<usize, S>) {
|
2023-07-28 14:35:48 -05:00
|
|
|
//~^ ERROR: parameter of type `HashSet` should be generalized over different hashers
|
2023-07-27 06:40:22 -05:00
|
|
|
let _ = [0u8; 0];
|
|
|
|
let _: HashSet<usize> = HashSet::default();
|
|
|
|
}
|