]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-1120.rs
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[rust.git] / src / tools / rustfmt / tests / target / issue-1120.rs
1 // rustfmt-reorder_imports: true
2
3 // Ensure that a use at the start of an inline module is correctly formatted.
4 mod foo {
5     use bar;
6 }
7
8 // Ensure that an indented `use` gets the correct indentation.
9 mod foo {
10     use bar;
11 }