rust-clippy/tests/ui/crashes/ice-3717.fixed
2023-08-11 14:02:28 +00:00

10 lines
233 B
Rust

#![deny(clippy::implicit_hasher)]
use std::collections::HashSet;
fn main() {}
pub fn ice_3717<S: ::std::hash::BuildHasher + Default>(_: &HashSet<usize, S>) {
let _ = [0u8; 0];
let _: HashSet<usize> = HashSet::default();
}