]> git.lizzy.rs Git - rust.git/blob - tests/ui/mismatched_types/show_module.rs
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / ui / mismatched_types / show_module.rs
1 pub mod blah {
2     pub mod baz {
3         pub struct Foo;
4     }
5 }
6
7 pub mod meh {
8     pub struct Foo;
9 }
10
11 pub type Foo = blah::baz::Foo;
12
13 fn foo() -> Foo {
14     meh::Foo
15     //~^ ERROR mismatched types [E0308]
16 }
17
18 fn main() {}