def_collector: Do not forget to save indices of fields with multiple attributes

This commit is contained in:
Vadim Petrochenkov 2019-11-23 14:16:38 +03:00
parent e41ced3f8d
commit 37bb0c7fa6
2 changed files with 18 additions and 9 deletions

View file

@ -0,0 +1,11 @@
// Duplicate non-builtin attributes can be used on unnamed fields.
// check-pass
struct S (
#[rustfmt::skip]
#[rustfmt::skip]
u8
);
fn main() {}