Skip to content

Commit

Permalink
fix(toml): Improve map/sequence error message
Browse files Browse the repository at this point in the history
This is a follow up to #13375
  • Loading branch information
epage committed Jan 31, 2024
1 parent 0f37cfb commit 190e7fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions tests/testsuite/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ edition = "2021"
.with_stderr(
"\
error: invalid type: map, expected a sequence
--> Cargo.toml:1:1
|
|
--> Cargo.toml:6:3
|
6 | [[bench.foo]]
| ^^^^^
|
",
)
.run();
Expand Down

0 comments on commit 190e7fc

Please sign in to comment.