]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/crashes/ice-3717.stderr
Merge commit 'da5a6fb1b65ec6581a67e942a3850f6bc15a552c' into clippyup
[rust.git] / src / tools / clippy / tests / ui / crashes / ice-3717.stderr
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