Skip to content

Commit

Permalink
Update expected output for zero-sized map value test
Browse files Browse the repository at this point in the history
  • Loading branch information
korrat committed Nov 14, 2020
1 parent 9aa5d48 commit 76fb981
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions tests/ui/zero_sized_map_values.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ LL | fn weird_map(&self, map: HashMap<usize, ()>);
= help: consider using a set instead

error: map with zero-sized value type
--> $DIR/zero_sized_map_values.rs:31:24
--> $DIR/zero_sized_map_values.rs:31:14
|
LL | fn hashmap_not_ok(map: HashMap<String, ()>, key: &str) -> HashMap<String, ()> {
| ^^^^^^^^^^^^^^^^^^^
LL | fn test(map: HashMap<String, ()>, key: &str) -> HashMap<String, ()> {
| ^^^^^^^^^^^^^^^^^^^
|
= help: consider using a set instead

error: map with zero-sized value type
--> $DIR/zero_sized_map_values.rs:31:59
--> $DIR/zero_sized_map_values.rs:31:49
|
LL | fn hashmap_not_ok(map: HashMap<String, ()>, key: &str) -> HashMap<String, ()> {
| ^^^^^^^^^^^^^^^^^^^
LL | fn test(map: HashMap<String, ()>, key: &str) -> HashMap<String, ()> {
| ^^^^^^^^^^^^^^^^^^^
|
= help: consider using a set instead

Expand All @@ -50,18 +50,10 @@ LL | let _: HashMap<String, ()> = HashMap::new();
error: map with zero-sized value type
--> $DIR/zero_sized_map_values.rs:44:9
|
LL | let _: BTreeMap<String, ()> = BTreeMap::new();
| ^
|
= help: consider using a set instead

error: map with zero-sized value type
--> $DIR/zero_sized_map_values.rs:47:9
|
LL | let _: HashMap<_, _> = std::iter::empty::<(String, ())>().collect();
| ^
|
= help: consider using a set instead

error: aborting due to 8 previous errors
error: aborting due to 7 previous errors

0 comments on commit 76fb981

Please sign in to comment.