]> git.lizzy.rs Git - rust.git/blob - tests/target/imports.rs
Merge pull request #142 from cassiersg/rewrite-imports
[rust.git] / tests / target / imports.rs
1 // Imports.
2
3 // Long import.
4 use syntax::ast::{ItemForeignMod, ItemImpl, ItemMac, ItemMod, ItemStatic, ItemDefaultImpl};
5 use exceedingly::looooooooooooooooooooooooooooooooooooooooooooooooooooooooooong::import::path::{ItemA,
6                                                                                                 ItemB};
7
8 use list::{// Some item
9            SomeItem, // Comment
10            // Another item
11            AnotherItem, // Another Comment
12            // Last Item
13            LastItem};
14
15 use test::{/* A */ self /* B */, Other /* C */};
16
17 use syntax;
18 use {/* Pre-comment! */ Foo, Bar /* comment */};
19 use Foo::{Bar, Baz};
20 pub use syntax::ast::{Expr_, Expr, ExprAssign, ExprCall, ExprMethodCall, ExprPath};
21
22 mod Foo {
23     pub use syntax::ast::{ItemForeignMod, ItemImpl, ItemMac, ItemMod, ItemStatic, ItemDefaultImpl};
24
25     mod Foo2 {
26         pub use syntax::ast::{self, ItemForeignMod, ItemImpl, ItemMac, ItemMod, ItemStatic,
27                               ItemDefaultImpl};
28     }
29 }
30
31 fn test() {
32     use Baz::*;
33     use Qux;
34 }