summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-1120.rs
blob: f44597e7d1eefc84a016b9761e0acb85ff89eac3 (plain)
1
2
3
4
5
6
7
8
9
10
11
// rustfmt-reorder_imports: true

// Ensure that a use at the start of an inline module is correctly formatted.
mod foo {
    use bar;
}

// Ensure that an indented `use` gets the correct indentation.
mod foo {
    use bar;
}