mirror of https://github.com/rust-lang/rust
24 lines
401 B
Rust
24 lines
401 B
Rust
//@ check-pass
|
|
|
|
#![feature(type_alias_impl_trait)]
|
|
#![allow(dead_code)]
|
|
|
|
// test that the type alias impl trait defining use is in a submodule
|
|
|
|
fn main() {}
|
|
|
|
type Foo = impl std::fmt::Display;
|
|
type Bar = impl std::fmt::Display;
|
|
|
|
mod foo {
|
|
pub(crate) fn foo() -> super::Foo {
|
|
"foo"
|
|
}
|
|
|
|
pub(crate) mod bar {
|
|
pub(crate) fn bar() -> crate::Bar {
|
|
1
|
|
}
|
|
}
|
|
}
|