blob: 8b51f55715e9195d4abae69a3e4582791b441f4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// 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 fn foo() -> super::Foo {
"foo"
}
pub mod bar {
pub fn bar() -> crate::Bar {
1
}
}
}
|