]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/imports_granularity_crate.rs
Add 'src/tools/rustfmt/' from commit '7872306edf2e11a69aaffb9434088fd66b46a863'
[rust.git] / src / tools / rustfmt / tests / source / imports_granularity_crate.rs
1 // rustfmt-imports_granularity: Crate
2
3 use a::{c,d,b};
4 use a::{d, e, b, a, f};
5 use a::{f, g, c};
6
7 #[doc(hidden)]
8 use a::b;
9 use a::c;
10 use a::d;
11
12 use a::{c, d, e};
13 #[doc(hidden)]
14 use a::b;
15 use a::d;
16
17 pub use foo::bar;
18 use foo::{a, b, c};
19 pub use foo::foobar;
20
21 use a::{b::{c::*}};
22 use a::{b::{c::{}}};
23 use a::{b::{c::d}};
24 use a::{b::{c::{xxx, yyy, zzz}}};
25
26 // https://github.com/rust-lang/rustfmt/issues/3808
27 use d::{self};
28 use e::{self as foo};
29 use f::{self, b};
30 use g::a;
31 use g::{self, b};
32 use h::{a};
33 use i::a::{self};
34 use j::{a::{self}};
35
36 use {k::{a, b}, l::{a, b}};
37 use {k::{c, d}, l::{c, d}};