rust/tests/rustdoc/return-impl-trait.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
273 B
Rust
Raw Normal View History

#![feature(type_alias_impl_trait)]
2020-07-09 14:30:34 +00:00
pub trait Backend {}
impl Backend for () {}
pub struct Module<T>(T);
pub type BackendImpl = impl Backend;
//@ has return_impl_trait/fn.make_module.html
2020-07-09 14:30:34 +00:00
/// Documentation
pub fn make_module() -> Module<BackendImpl> {
Module(())
}