@@ -24,18 +24,18 @@ LL | fn weird_map(&self, map: HashMap<usize, ()>);
24
24
= help: consider using a set instead
25
25
26
26
error: map with zero-sized value type
27
- --> $DIR/zero_sized_map_values.rs:31:24
27
+ --> $DIR/zero_sized_map_values.rs:31:14
28
28
|
29
- LL | fn hashmap_not_ok (map: HashMap<String, ()>, key: &str) -> HashMap<String, ()> {
30
- | ^^^^^^^^^^^^^^^^^^^
29
+ LL | fn test (map: HashMap<String, ()>, key: &str) -> HashMap<String, ()> {
30
+ | ^^^^^^^^^^^^^^^^^^^
31
31
|
32
32
= help: consider using a set instead
33
33
34
34
error: map with zero-sized value type
35
- --> $DIR/zero_sized_map_values.rs:31:59
35
+ --> $DIR/zero_sized_map_values.rs:31:49
36
36
|
37
- LL | fn hashmap_not_ok (map: HashMap<String, ()>, key: &str) -> HashMap<String, ()> {
38
- | ^^^^^^^^^^^^^^^^^^^
37
+ LL | fn test (map: HashMap<String, ()>, key: &str) -> HashMap<String, ()> {
38
+ | ^^^^^^^^^^^^^^^^^^^
39
39
|
40
40
= help: consider using a set instead
41
41
@@ -50,18 +50,10 @@ LL | let _: HashMap<String, ()> = HashMap::new();
50
50
error: map with zero-sized value type
51
51
--> $DIR/zero_sized_map_values.rs:44:9
52
52
|
53
- LL | let _: BTreeMap<String, ()> = BTreeMap::new();
54
- | ^
55
- |
56
- = help: consider using a set instead
57
-
58
- error: map with zero-sized value type
59
- --> $DIR/zero_sized_map_values.rs:47:9
60
- |
61
53
LL | let _: HashMap<_, _> = std::iter::empty::<(String, ())>().collect();
62
54
| ^
63
55
|
64
56
= help: consider using a set instead
65
57
66
- error: aborting due to 8 previous errors
58
+ error: aborting due to 7 previous errors
67
59
0 commit comments