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