blob: 3e7bc32640f52b9a07c9bae52492b01c0760c3bb [file] [log] [blame] [edit]
//@ 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
}
}
}