]> git.lizzy.rs Git - rust.git/blob - tests/ui/crashes/ice-3717.stderr
Rollup merge of #5410 - dtolnay:trivially, r=flip1995
[rust.git] / tests / ui / crashes / ice-3717.stderr
1 error: parameter of type `HashSet` should be generalized over different hashers
2   --> $DIR/ice-3717.rs:5:21
3    |
4 LL | pub fn ice_3717(_: &HashSet<usize>) {
5    |                     ^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::implicit-hasher` implied by `-D warnings`
8 help: consider adding a type parameter
9    |
10 LL | pub fn ice_3717<S: ::std::hash::BuildHasher + Default>(_: &HashSet<usize, S>) {
11    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^     ^^^^^^^^^^^^^^^^^
12 help: ...and use generic constructor
13    |
14 LL |     let _: HashSet<usize> = HashSet::default();
15    |                             ^^^^^^^^^^^^^^^^^^
16
17 error: aborting due to previous error
18