Skip to content

Commit 8a9ffbb

Browse files
committed
Update expected output for zero-sized map value test
1 parent 83e9a5f commit 8a9ffbb

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

tests/ui/zero_sized_map_values.stderr

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ LL | fn weird_map(&self, map: HashMap<usize, ()>);
2424
= help: consider using a set instead
2525

2626
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
2828
|
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+
| ^^^^^^^^^^^^^^^^^^^
3131
|
3232
= help: consider using a set instead
3333

3434
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
3636
|
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+
| ^^^^^^^^^^^^^^^^^^^
3939
|
4040
= help: consider using a set instead
4141

@@ -50,18 +50,10 @@ LL | let _: HashMap<String, ()> = HashMap::new();
5050
error: map with zero-sized value type
5151
--> $DIR/zero_sized_map_values.rs:44:9
5252
|
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-
|
6153
LL | let _: HashMap<_, _> = std::iter::empty::<(String, ())>().collect();
6254
| ^
6355
|
6456
= help: consider using a set instead
6557

66-
error: aborting due to 8 previous errors
58+
error: aborting due to 7 previous errors
6759

0 commit comments

Comments
 (0)