]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/impl-trait-alias.rs
Rollup merge of #107412 - tshepang:needless-check, r=wesleywiser
[rust.git] / tests / 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 }