blob: 4f681c78ee1171ae4fdcc861d0b88a2c410e27f3 (
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
}
|