Skip to content

Commit d010443

Browse files
committed
Add test case for rust-lang#65863
1 parent a93bcc9 commit d010443

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/test/rustdoc/return-impl-trait.rs

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
}

0 commit comments

Comments
 (0)