about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/crashes/ice-3717.stderr
blob: 2e53b610922e68054ec9201b37d921274819ea89 (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
  --> tests/ui/crashes/ice-3717.rs:7:21
   |
LL | pub fn ice_3717(_: &HashSet<usize>) {
   |                     ^^^^^^^^^^^^^^
   |
note: the lint level is defined here
  --> tests/ui/crashes/ice-3717.rs:1:9
   |
LL | #![deny(clippy::implicit_hasher)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^
help: add a type parameter for `BuildHasher`
   |
LL ~ pub fn ice_3717<S: ::std::hash::BuildHasher + Default>(_: &HashSet<usize, S>) {
LL |
LL |
LL |     let _ = [0u8; 0];
LL ~     let _: HashSet<usize> = HashSet::default();
   |

error: aborting due to 1 previous error