@@ -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:14
27
+ --> $DIR/zero_sized_map_values.rs:31:24
28
28
|
29
- LL | fn test (map: HashMap<String, ()>, key: &str) -> HashMap<String, ()> {
30
- | ^^^^^^^^^^^^^^^^^^^
29
+ LL | fn hashmap_not_ok (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:49
35
+ --> $DIR/zero_sized_map_values.rs:31:59
36
36
|
37
- LL | fn test (map: HashMap<String, ()>, key: &str) -> HashMap<String, ()> {
38
- | ^^^^^^^^^^^^^^^^^^^
37
+ LL | fn hashmap_not_ok (map: HashMap<String, ()>, key: &str) -> HashMap<String, ()> {
38
+ | ^^^^^^^^^^^^^^^^^^^
39
39
|
40
40
= help: consider using a set instead
41
41
@@ -50,10 +50,18 @@ 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
+ |
53
61
LL | let _: HashMap<_, _> = std::iter::empty::<(String, ())>().collect();
54
62
| ^
55
63
|
56
64
= help: consider using a set instead
57
65
58
- error: aborting due to 7 previous errors
66
+ error: aborting due to 8 previous errors
59
67
0 commit comments