]> git.lizzy.rs Git - rust.git/blob - tests/target/imports.rs
Merge pull request #90 from marcusklaas/empty-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 {Foo, Bar};
9 use Foo::{Bar, Baz};
10 pub use syntax::ast::{Expr_, Expr, ExprAssign, ExprCall, ExprMethodCall, ExprPath};
11
12 mod Foo {
13     pub use syntax::ast::{ItemForeignMod, ItemImpl, ItemMac, ItemMod, ItemStatic, ItemDefaultImpl};
14
15     mod Foo2 {
16         pub use syntax::ast::{ItemForeignMod, ItemImpl, ItemMac, ItemMod,
17                               ItemStatic, ItemDefaultImpl};
18     }
19 }
20
21 fn test() {
22     use Baz::*;
23 }