]> git.lizzy.rs Git - rust.git/blob - tests/target/imports.rs
Merge pull request #260 from cburgdorf/struct_lit_force_multiline
[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, ItemB};
6 use exceedingly::loooooooooooooooooooooooooooooooooooooooooooooooooooooooong::import::path::{ItemA,
7                                                                                              ItemB};
8
9 use list::{// Some item
10            SomeItem, // Comment
11            // Another item
12            AnotherItem, // Another Comment
13            // Last Item
14            LastItem};
15
16 use test::{/* A */ self /* B */, Other /* C */};
17
18 use syntax;
19 use {/* Pre-comment! */ Foo, Bar /* comment */};
20 use Foo::{Bar, Baz};
21 pub use syntax::ast::{Expr_, Expr, ExprAssign, ExprCall, ExprMethodCall, ExprPath};
22
23 mod Foo {
24     pub use syntax::ast::{ItemForeignMod, ItemImpl, ItemMac, ItemMod, ItemStatic, ItemDefaultImpl};
25
26     mod Foo2 {
27         pub use syntax::ast::{self, ItemForeignMod, ItemImpl, ItemMac, ItemMod, ItemStatic,
28                               ItemDefaultImpl};
29     }
30 }
31
32 fn test() {
33     use Baz::*;
34     use Qux;
35 }
36
37 // Simple imports
38 use foo::bar::baz;
39 use bar::quux as kaas;
40 use foo;