blob: f7ecfffbf46d55ffa184cd1a90d53ef79aa8b5eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#![feature(type_alias_impl_trait)]
trait MyTrait {}
impl MyTrait for i32 {}
//@ hasraw impl_trait_alias/type.Foo.html 'Foo'
/// debug type
pub type Foo = impl MyTrait;
//@ hasraw impl_trait_alias/fn.foo.html 'foo'
/// debug function
pub fn foo() -> Foo {
1
}
|