2025-07-24 17:52:22 +05:00
|
|
|
//! Regression test for https://github.com/rust-lang/rust/issues/14082
|
|
|
|
|
|
2019-11-04 00:00:00 +00:00
|
|
|
//@ check-pass
|
2015-03-22 13:13:15 -07:00
|
|
|
|
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() {}
|