]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/return-impl-trait.rs
Rollup merge of #107819 - clubby789:x-py-root, r=jyn514
[rust.git] / tests / rustdoc / return-impl-trait.rs
1 #![feature(type_alias_impl_trait)]
2
3 pub trait Backend {}
4
5 impl Backend for () {}
6
7 pub struct Module<T>(T);
8
9 pub type BackendImpl = impl Backend;
10
11 // @has return_impl_trait/fn.make_module.html
12 /// Documentation
13 pub fn make_module() -> Module<BackendImpl> {
14     Module(())
15 }