rust/tests/ui/mismatched_types/show_module.rs

19 lines
222 B
Rust

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() {}