about summary refs log tree commit diff
path: root/tests/rustdoc/return-impl-trait.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/return-impl-trait.rs')
-rw-r--r--tests/rustdoc/return-impl-trait.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/rustdoc/return-impl-trait.rs b/tests/rustdoc/return-impl-trait.rs
new file mode 100644
index 00000000000..1ccf5ac4611
--- /dev/null
+++ b/tests/rustdoc/return-impl-trait.rs
@@ -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(())
+}