Update error span for attribute / data kind mismatches

This commit is contained in:
Jonas Platte committed 2023-07-27 10:47:45 +02:00
1 parent 74fe70855f
commit 31a0e73489
7 files changed
+40 -42

No files matched your search

@@ -1,5 +1,5 @@
error: #[serde(untagged)] can only be used on enums
--> tests/ui/enum-representation/untagged-struct.rs:5:1
--> tests/ui/enum-representation/untagged-struct.rs:4:9
|
5 | struct S;
| ^^^^^^
4 | #[serde(untagged)]
| ^^^^^^^^