]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/impl-trait-alias.rs
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
[rust.git] / src / test / rustdoc / impl-trait-alias.rs
1 #![feature(type_alias_impl_trait)]
2
3 trait MyTrait {}
4 impl MyTrait for i32 {}
5
6 // @hasraw impl_trait_alias/type.Foo.html 'Foo'
7 /// debug type
8 pub type Foo = impl MyTrait;
9
10 // @hasraw impl_trait_alias/fn.foo.html 'foo'
11 /// debug function
12 pub fn foo() -> Foo {
13     1
14 }