summaryrefslogtreecommitdiffstats
path: root/tests/ui/editions/edition-imports-virtual-2015-ambiguity.rs
blob: 3fffb30c612d02d8e2caf0f7d416ce5d435c3466 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// check-pass
// edition:2018
// compile-flags:--extern edition_imports_2015
// aux-build:edition-imports-2015.rs

mod edition_imports_2015 {
    pub struct Path;
}

pub struct Ambiguous {}

mod check {
    pub struct Ambiguous {}

    fn check() {
        edition_imports_2015::gen_ambiguous!(); // OK
    }
}

fn main() {}