Treat field-level borrow attr as duplicate of variant-level borrow attr

This commit is contained in:
David Tolnay committed 2023-03-11 11:17:40 -08:00
1 parent 183b91775e
commit b7b636a23f
2 files changed
+10 -10

No files matched your search

@@ -1,5 +1,5 @@
error: duplicate serde attribute `borrow`
--> tests/ui/borrow/duplicate_variant.rs:8:13
--> tests/ui/borrow/duplicate_variant.rs:9:15
|
8 | #[serde(borrow)]
| ^^^^^^
9 | S(#[serde(borrow)] Str<'a>),
| ^^^^^^