mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
19 lines
222 B
Rust
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() {}
|