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