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