toml icon indicating copy to clipboard operation
toml copied to clipboard

`toml_edit` error regression compared to `toml`: redefinition of table

Open epage opened this issue 2 years ago • 0 comments

@@ -606,7 +1157,14 @@ fn bad_table_redefine() {
         foo=\"bar\"
         [a]
         ",
-        "redefinition of table `a` for key `a` at line 6 column 9"
+        "\
+TOML parse error at line 6, column 9
+  |
+6 |         [a]
+  |         ^
+invalid table header
+duplicate key `a` in document root
+"

epage avatar Jan 18 '23 03:01 epage