mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
22 lines
278 B
Rust
22 lines
278 B
Rust
//! Regression test for https://github.com/rust-lang/rust/issues/14082
|
|
|
|
//@ check-pass
|
|
|
|
#![allow(unused_imports, dead_code)]
|
|
|
|
use foo::Foo;
|
|
|
|
mod foo {
|
|
pub use m::Foo; // this should shadow d::Foo
|
|
}
|
|
|
|
mod m {
|
|
pub struct Foo;
|
|
}
|
|
|
|
mod d {
|
|
pub struct Foo;
|
|
}
|
|
|
|
fn main() {}
|