def_collector: Do not forget to save indices of fields with multiple attributes
This commit is contained in:
parent
e41ced3f8d
commit
37bb0c7fa6
2 changed files with 18 additions and 9 deletions
11
src/test/ui/attributes/unnamed-field-attributes-dup.rs
Normal file
11
src/test/ui/attributes/unnamed-field-attributes-dup.rs
Normal 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() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue