]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/crashes/ice-3717.fixed
New upstream version 1.74.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / crashes / ice-3717.fixed
1 #![deny(clippy::implicit_hasher)]
2
3 use std::collections::HashSet;
4
5 fn main() {}
6
7 pub fn ice_3717<S: ::std::hash::BuildHasher + Default>(_: &HashSet<usize, S>) {
8 //~^ ERROR: parameter of type `HashSet` should be generalized over different hashers
9 let _ = [0u8; 0];
10 let _: HashSet<usize> = HashSet::default();
11 }