summaryrefslogtreecommitdiffstats
path: root/src/test/ui/mismatched_types/show_module.rs
blob: 61550b887552065dd161ab16c888587d1235994f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub mod blah {
    pub mod baz {
        pub struct Foo;
    }
}

pub mod meh {
    pub struct Foo;
}

pub type Foo = blah::baz::Foo;

fn foo() -> Foo {
    meh::Foo
    //~^ ERROR mismatched types [E0308]
}

fn main() {}