Files
rust/tests/ui/resolve/use-shadowing-14082.rs

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

22 lines
278 B
Rust
Raw Normal View History

2025-07-24 17:52:22 +05:00
//! Regression test for https://github.com/rust-lang/rust/issues/14082
//@ check-pass
#![allow(unused_imports, dead_code)]
2014-10-02 08:10:09 +03:00
use foo::Foo;
mod foo {
2014-10-02 08:10:09 +03:00
pub use m::Foo; // this should shadow d::Foo
}
mod m {
2014-10-02 08:10:09 +03:00
pub struct Foo;
}
mod d {
2014-10-02 08:10:09 +03:00
pub struct Foo;
}
fn main() {}