better errors for unmatched variants

This commit is contained in:
Robin Appelman 2023-12-18 17:08:00 +01:00
commit 23bc240d4f
5 changed files with 84 additions and 8 deletions

View file

@ -0,0 +1,14 @@
---
source: tests/serde.rs
expression: out
---
vmt_parser::unknown_variant
× Unknown variant "Resource" expected on of expected on of Types, LightmappedGeneric, Resource/specificPanel.res, UserConfigData
╭─[1:1]
1 │ "Resource"
· ─────┬────
· ╰── expected on of Types, LightmappedGeneric, Resource/specificPanel.res, UserConfigData
2 │ {
╰────