1 // rustfmt-imports_granularity: Item
2 // rustfmt-group_imports: One
4 // Confirm that attributes are duplicated to all items in the use statement
5 #[cfg(feature = "foo")]
6 use std::collections::HashMap;
7 #[cfg(feature = "foo")]
8 use std::collections::HashSet;
10 // Separate the imports below from the ones above
13 // Copying attrs works with import grouping as well
14 #[cfg(feature = "spam")]
16 #[cfg(feature = "spam")]
18 #[cfg(feature = "foo")]
19 use std::collections::HashMap;
20 #[cfg(feature = "foo")]
21 use std::collections::HashSet;