rust/tests/ui/issues/issue-14082.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
237 B
Rust
Raw Normal View History

// check-pass
// pretty-expanded FIXME #23616
#![allow(unused_imports, dead_code)]
2014-10-02 00:10:09 -05:00
use foo::Foo;
mod foo {
2014-10-02 00:10:09 -05:00
pub use m::Foo; // this should shadow d::Foo
}
mod m {
2014-10-02 00:10:09 -05:00
pub struct Foo;
}
mod d {
2014-10-02 00:10:09 -05:00
pub struct Foo;
}
fn main() {}