about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/crashes/ice-3717.fixed
blob: 5581b67fa5c44ba3046be2d224bb383b53d5e1ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![deny(clippy::implicit_hasher)]

use std::collections::HashSet;

fn main() {}

pub fn ice_3717<S: ::std::hash::BuildHasher + Default>(_: &HashSet<usize, S>) {
    //~^ implicit_hasher

    let _ = [0u8; 0];
    let _: HashSet<usize> = HashSet::default();
}