2020-04-02 19:09:30 -07:00
|
|
|
#![deny(clippy::implicit_hasher)]
|
|
|
|
|
2019-02-16 22:41:06 +01:00
|
|
|
use std::collections::HashSet;
|
|
|
|
|
|
|
|
fn main() {}
|
|
|
|
|
|
|
|
pub fn ice_3717(_: &HashSet<usize>) {
|
2023-08-24 21:32:12 +02:00
|
|
|
//~^ ERROR: parameter of type `HashSet` should be generalized over different hashers
|
2019-02-16 22:41:06 +01:00
|
|
|
let _ = [0u8; 0];
|
|
|
|
let _: HashSet<usize> = HashSet::new();
|
|
|
|
}
|