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

This commit is contained in:
David Tolnay
2023-03-11 11:17:35 -08:00
parent 183b91775e
commit b7b636a23f
2 changed files with 10 additions and 10 deletions
@@ -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>),
| ^^^^^^