Add test case for #65863
This commit is contained in:
parent
a93bcc9a7b
commit
d01044305a
1 changed files with 15 additions and 0 deletions
15
src/test/rustdoc/return-impl-trait.rs
Normal file
15
src/test/rustdoc/return-impl-trait.rs
Normal file
|
@ -0,0 +1,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(())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue