1 error: map with zero-sized value type
2 --> $DIR/zero_sized_hashmap_values.rs:5:28
4 LL | const CONST_NOT_OK: Option<HashMap<String, ()>> = None;
7 = note: `-D clippy::zero-sized-map-values` implied by `-D warnings`
8 = help: consider using a set instead
10 error: map with zero-sized value type
11 --> $DIR/zero_sized_hashmap_values.rs:8:30
13 LL | static STATIC_NOT_OK: Option<HashMap<String, ()>> = None;
16 = help: consider using a set instead
18 error: map with zero-sized value type
19 --> $DIR/zero_sized_hashmap_values.rs:11:17
21 LL | type NotOkMap = HashMap<String, ()>;
24 = help: consider using a set instead
26 error: map with zero-sized value type
27 --> $DIR/zero_sized_hashmap_values.rs:15:11
29 LL | NotOk(HashMap<String, ()>),
32 = help: consider using a set instead
34 error: map with zero-sized value type
35 --> $DIR/zero_sized_hashmap_values.rs:20:13
37 LL | not_ok: HashMap<String, ()>,
40 = help: consider using a set instead
42 error: map with zero-sized value type
43 --> $DIR/zero_sized_hashmap_values.rs:22:22
45 LL | also_not_ok: Vec<HashMap<usize, ()>>,
48 = help: consider using a set instead
50 error: map with zero-sized value type
51 --> $DIR/zero_sized_hashmap_values.rs:30:30
53 LL | fn weird_map(&self, map: HashMap<usize, ()>);
56 = help: consider using a set instead
58 error: map with zero-sized value type
59 --> $DIR/zero_sized_hashmap_values.rs:38:25
61 LL | fn not_ok(&self) -> HashMap<String, ()> {
64 = help: consider using a set instead
66 error: map with zero-sized value type
67 --> $DIR/zero_sized_hashmap_values.rs:55:14
69 LL | fn test(map: HashMap<String, ()>, key: &str) -> HashMap<String, ()> {
72 = help: consider using a set instead
74 error: map with zero-sized value type
75 --> $DIR/zero_sized_hashmap_values.rs:55:49
77 LL | fn test(map: HashMap<String, ()>, key: &str) -> HashMap<String, ()> {
80 = help: consider using a set instead
82 error: map with zero-sized value type
83 --> $DIR/zero_sized_hashmap_values.rs:64:34
85 LL | let _: HashMap<String, ()> = HashMap::new();
88 = help: consider using a set instead
90 error: map with zero-sized value type
91 --> $DIR/zero_sized_hashmap_values.rs:64:12
93 LL | let _: HashMap<String, ()> = HashMap::new();
96 = help: consider using a set instead
98 error: map with zero-sized value type
99 --> $DIR/zero_sized_hashmap_values.rs:67:12
101 LL | let _: HashMap<_, _> = std::iter::empty::<(String, ())>().collect();
104 = help: consider using a set instead
106 error: aborting due to 13 previous errors