2021-07-26 15:01:16 -05:00
|
|
|
#![feature(type_alias_impl_trait)]
|
2020-07-09 09:30:34 -05: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
|
|
|
|
/// Documentation
|
|
|
|
pub fn make_module() -> Module<BackendImpl> {
|
|
|
|
Module(())
|
|
|
|
}
|