2021-07-26 15:01:16 -05:00
|
|
|
#![feature(type_alias_impl_trait)]
|
2020-07-03 17:41:23 -05:00
|
|
|
|
|
|
|
trait MyTrait {}
|
|
|
|
impl MyTrait for i32 {}
|
|
|
|
|
2022-08-10 15:13:18 -05:00
|
|
|
// @hasraw impl_trait_alias/type.Foo.html 'Foo'
|
2020-07-03 17:41:23 -05:00
|
|
|
/// debug type
|
|
|
|
pub type Foo = impl MyTrait;
|
|
|
|
|
2022-08-10 15:13:18 -05:00
|
|
|
// @hasraw impl_trait_alias/fn.foo.html 'foo'
|
2020-07-03 17:41:23 -05:00
|
|
|
/// debug function
|
|
|
|
pub fn foo() -> Foo {
|
|
|
|
1
|
|
|
|
}
|