]> git.lizzy.rs Git - rust.git/blob - tests/source/imports-reorder-lines.rs
chore: bump toolchain
[rust.git] / tests / source / imports-reorder-lines.rs
1 use std::str;
2 use std::cmp::{d, c, b, a};
3 use std::cmp::{b, e, g, f};
4 use std::ddd::aaa;
5 // This comment should stay with `use std::ddd;`
6 use std::ddd;
7 use std::ddd::bbb;
8
9 mod test {
10 }
11
12 use aaa::bbb;
13 use aaa;
14 use aaa::*;
15
16 mod test {}
17 // If item names are equal, order by rename
18
19 use test::{a as bb, b};
20 use test::{a as aa, c};
21
22 mod test {}
23 // If item names are equal, order by rename - no rename comes before a rename
24
25 use test::{a as bb, b};
26 use test::{a, c};
27
28 mod test {}
29 // `self` always comes first
30
31 use test::{a as aa, c};
32 use test::{self as bb, b};