]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/zero_sized_hashmap_values.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / tools / clippy / tests / ui / zero_sized_hashmap_values.stderr
CommitLineData
f20569fa
XL
1error: map with zero-sized value type
2 --> $DIR/zero_sized_hashmap_values.rs:5:28
3 |
4LL | const CONST_NOT_OK: Option<HashMap<String, ()>> = None;
5 | ^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `-D clippy::zero-sized-map-values` implied by `-D warnings`
8 = help: consider using a set instead
9
10error: map with zero-sized value type
11 --> $DIR/zero_sized_hashmap_values.rs:8:30
12 |
13LL | static STATIC_NOT_OK: Option<HashMap<String, ()>> = None;
14 | ^^^^^^^^^^^^^^^^^^^
15 |
16 = help: consider using a set instead
17
18error: map with zero-sized value type
19 --> $DIR/zero_sized_hashmap_values.rs:11:17
20 |
21LL | type NotOkMap = HashMap<String, ()>;
22 | ^^^^^^^^^^^^^^^^^^^
23 |
24 = help: consider using a set instead
25
26error: map with zero-sized value type
27 --> $DIR/zero_sized_hashmap_values.rs:15:11
28 |
29LL | NotOk(HashMap<String, ()>),
30 | ^^^^^^^^^^^^^^^^^^^
31 |
32 = help: consider using a set instead
33
34error: map with zero-sized value type
35 --> $DIR/zero_sized_hashmap_values.rs:20:13
36 |
37LL | not_ok: HashMap<String, ()>,
38 | ^^^^^^^^^^^^^^^^^^^
39 |
40 = help: consider using a set instead
41
42error: map with zero-sized value type
43 --> $DIR/zero_sized_hashmap_values.rs:22:22
44 |
45LL | also_not_ok: Vec<HashMap<usize, ()>>,
46 | ^^^^^^^^^^^^^^^^^^
47 |
48 = help: consider using a set instead
49
50error: map with zero-sized value type
51 --> $DIR/zero_sized_hashmap_values.rs:30:30
52 |
53LL | fn weird_map(&self, map: HashMap<usize, ()>);
54 | ^^^^^^^^^^^^^^^^^^
55 |
56 = help: consider using a set instead
57
58error: map with zero-sized value type
59 --> $DIR/zero_sized_hashmap_values.rs:38:25
60 |
61LL | fn not_ok(&self) -> HashMap<String, ()> {
62 | ^^^^^^^^^^^^^^^^^^^
63 |
64 = help: consider using a set instead
65
66error: map with zero-sized value type
67 --> $DIR/zero_sized_hashmap_values.rs:55:14
68 |
69LL | fn test(map: HashMap<String, ()>, key: &str) -> HashMap<String, ()> {
70 | ^^^^^^^^^^^^^^^^^^^
71 |
72 = help: consider using a set instead
73
74error: map with zero-sized value type
75 --> $DIR/zero_sized_hashmap_values.rs:55:49
76 |
77LL | fn test(map: HashMap<String, ()>, key: &str) -> HashMap<String, ()> {
78 | ^^^^^^^^^^^^^^^^^^^
79 |
80 = help: consider using a set instead
81
82error: map with zero-sized value type
83 --> $DIR/zero_sized_hashmap_values.rs:64:34
84 |
85LL | let _: HashMap<String, ()> = HashMap::new();
86 | ^^^^^^^
87 |
88 = help: consider using a set instead
89
90error: map with zero-sized value type
91 --> $DIR/zero_sized_hashmap_values.rs:64:12
92 |
93LL | let _: HashMap<String, ()> = HashMap::new();
94 | ^^^^^^^^^^^^^^^^^^^
95 |
96 = help: consider using a set instead
97
98error: map with zero-sized value type
99 --> $DIR/zero_sized_hashmap_values.rs:67:12
100 |
101LL | let _: HashMap<_, _> = std::iter::empty::<(String, ())>().collect();
102 | ^^^^^^^^^^^^^
103 |
104 = help: consider using a set instead
105
106error: aborting due to 13 previous errors
107