2021-03-12 10:53:51 +00:00
|
|
|
#![feature(min_type_alias_impl_trait)]
|
2020-07-03 18:41:23 -04:00
|
|
|
|
|
|
|
trait MyTrait {}
|
|
|
|
impl MyTrait for i32 {}
|
|
|
|
|
|
|
|
// @has impl_trait_alias/type.Foo.html 'Foo'
|
|
|
|
/// debug type
|
|
|
|
pub type Foo = impl MyTrait;
|
|
|
|
|
|
|
|
// @has impl_trait_alias/fn.foo.html 'foo'
|
|
|
|
/// debug function
|
|
|
|
pub fn foo() -> Foo {
|
|
|
|
1
|
|
|
|
}
|