2015-04-29 15:00:58 +12:00
|
|
|
// Imports.
|
|
|
|
|
|
|
|
// Long import.
|
2015-05-04 17:16:51 +02:00
|
|
|
use syntax::ast::{ItemForeignMod, ItemImpl, ItemMac, ItemMod, ItemStatic, ItemDefaultImpl};
|
|
|
|
use exceedingly::looooooooooooooooooooooooooooooooooooooooooooooooooooooooooong::import::path::{ItemA,
|
|
|
|
ItemB};
|
2015-04-29 15:00:58 +12:00
|
|
|
|
2015-06-26 03:29:54 +02:00
|
|
|
use list::{// Some item
|
|
|
|
SomeItem, // Comment
|
|
|
|
// Another item
|
|
|
|
AnotherItem, // Another Comment
|
|
|
|
// Last Item
|
|
|
|
LastItem};
|
|
|
|
|
|
|
|
use test::{/* A */ self /* B */, Other /* C */};
|
|
|
|
|
|
|
|
use syntax;
|
|
|
|
use {/* Pre-comment! */ Foo, Bar /* comment */};
|
2015-04-29 15:00:58 +12:00
|
|
|
use Foo::{Bar, Baz};
|
2015-05-04 17:16:51 +02:00
|
|
|
pub use syntax::ast::{Expr_, Expr, ExprAssign, ExprCall, ExprMethodCall, ExprPath};
|
2015-05-02 19:12:16 +02:00
|
|
|
|
|
|
|
mod Foo {
|
2015-05-04 17:16:51 +02:00
|
|
|
pub use syntax::ast::{ItemForeignMod, ItemImpl, ItemMac, ItemMod, ItemStatic, ItemDefaultImpl};
|
2015-05-02 19:12:16 +02:00
|
|
|
|
|
|
|
mod Foo2 {
|
2015-07-17 15:58:47 +02:00
|
|
|
pub use syntax::ast::{self, ItemForeignMod, ItemImpl, ItemMac, ItemMod, ItemStatic,
|
|
|
|
ItemDefaultImpl};
|
2015-05-02 19:12:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn test() {
|
|
|
|
use Baz::*;
|
2015-06-26 03:29:54 +02:00
|
|
|
use Qux;
|
2015-05-02 19:12:16 +02:00
|
|
|
}
|
2015-07-25 23:10:48 +02:00
|
|
|
|
|
|
|
// Simple imports
|
|
|
|
use foo::bar::baz;
|
|
|
|
use bar::quux as kaas;
|
|
|
|
use foo;
|