summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crashes/ice-3717.stderr
blob: 4d3d617b693756062f9b9ffcc7a86e7ec10c7361 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error: parameter of type `HashSet` should be generalized over different hashers
  --> $DIR/ice-3717.rs:7:21
   |
LL | pub fn ice_3717(_: &HashSet<usize>) {
   |                     ^^^^^^^^^^^^^^
   |
note: the lint level is defined here
  --> $DIR/ice-3717.rs:1:9
   |
LL | #![deny(clippy::implicit_hasher)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^
help: consider adding a type parameter
   |
LL | pub fn ice_3717<S: ::std::hash::BuildHasher + Default>(_: &HashSet<usize, S>) {
   |                +++++++++++++++++++++++++++++++++++++++     ~~~~~~~~~~~~~~~~~
help: ...and use generic constructor
   |
LL |     let _: HashSet<usize> = HashSet::default();
   |                             ~~~~~~~~~~~~~~~~~~

error: aborting due to previous error