about summary refs log tree commit diff
path: root/tests/rustdoc/impl/return-impl-trait.rs
blob: 175867d2204491bafa27666f9284b27dc8de8fd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![feature(type_alias_impl_trait)]

pub trait Backend {}

impl Backend for () {}

pub struct Module<T>(T);

pub type BackendImpl = impl Backend;

//@ has return_impl_trait/fn.make_module.html
/// Documentation
pub fn make_module() -> Module<BackendImpl> {
    Module(())
}