about summary refs log tree commit diff
path: root/tests/ui/resolve/use-shadowing-14082.rs
blob: 9d7df5ed1c6c91d6a09d4a8308fa007f07d6678a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//! 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() {}