mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-07-02 14:57:22 +00:00
Update error span for attribute / data kind mismatches
This commit is contained in:
@@ -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)]
|
||||
| ^^^^^^^^
|
||||
|
||||
Reference in New Issue
Block a user