2019-07-27 00:54:25 +03:00
|
|
|
// run-pass
|
|
|
|
|
2018-09-14 12:20:28 +02:00
|
|
|
#![allow(unused_imports)]
|
2015-03-22 13:13:15 -07:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2014-12-31 17:29:22 +13:00
|
|
|
pub use foo::bar::{self, First};
|
2014-07-18 00:56:56 +02:00
|
|
|
use self::bar::Second;
|
|
|
|
|
|
|
|
mod foo {
|
2014-12-31 17:29:22 +13:00
|
|
|
pub use self::bar::baz::{self};
|
2014-07-18 00:56:56 +02:00
|
|
|
|
|
|
|
pub mod bar {
|
|
|
|
pub mod baz {
|
|
|
|
pub struct Fourth;
|
|
|
|
}
|
|
|
|
pub struct First;
|
|
|
|
pub struct Second;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct Third;
|
|
|
|
}
|
|
|
|
|
|
|
|
mod baz {
|
2015-01-03 22:42:37 -05:00
|
|
|
use super::foo::{bar, self};
|
2014-07-18 00:56:56 +02:00
|
|
|
pub use foo::Third;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _ = First;
|
|
|
|
let _ = Second;
|
|
|
|
let _ = baz::Third;
|
|
|
|
let _ = foo::baz::Fourth;
|
|
|
|
}
|