2019-11-03 18:00:00 -06:00
|
|
|
// check-pass
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2014-05-15 17:32:15 -05:00
|
|
|
#![allow(unused_imports, dead_code)]
|
|
|
|
|
2014-10-02 00:10:09 -05:00
|
|
|
use foo::Foo;
|
2014-05-15 17:32:15 -05:00
|
|
|
|
|
|
|
mod foo {
|
2014-10-02 00:10:09 -05:00
|
|
|
pub use m::Foo; // this should shadow d::Foo
|
2014-05-15 17:32:15 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
mod m {
|
2014-10-02 00:10:09 -05:00
|
|
|
pub struct Foo;
|
2014-05-15 17:32:15 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
mod d {
|
2014-10-02 00:10:09 -05:00
|
|
|
pub struct Foo;
|
2014-05-15 17:32:15 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|