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