blob: bf73a833580c5ce80b26d8c30687c84b7bf755bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#![feature(min_type_alias_impl_trait)]
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
}
|