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