2019-02-16 21:41:06 +00:00
|
|
|
error: parameter of type `HashSet` should be generalized over different hashers
|
2020-04-03 02:09:30 +00:00
|
|
|
--> $DIR/ice-3717.rs:7:21
|
2019-02-16 21:41:06 +00:00
|
|
|
|
|
|
|
|
LL | pub fn ice_3717(_: &HashSet<usize>) {
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-04-03 02:09:30 +00:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/ice-3717.rs:1:9
|
|
|
|
|
|
|
|
|
LL | #![deny(clippy::implicit_hasher)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2019-02-16 21:41:06 +00:00
|
|
|
help: consider adding a type parameter
|
|
|
|
|
|
|
|
|
LL | pub fn ice_3717<S: ::std::hash::BuildHasher + Default>(_: &HashSet<usize, S>) {
|
2021-08-11 14:21:33 +00:00
|
|
|
| +++++++++++++++++++++++++++++++++++++++ ~~~~~~~~~~~~~~~~~
|
2019-02-16 21:41:06 +00:00
|
|
|
help: ...and use generic constructor
|
|
|
|
|
|
|
|
|
LL | let _: HashSet<usize> = HashSet::default();
|
2021-08-11 14:21:33 +00:00
|
|
|
| ~~~~~~~~~~~~~~~~~~
|
2019-02-16 21:41:06 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|