summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-js/generics-nested.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-js/generics-nested.rs')
-rw-r--r--tests/rustdoc-js/generics-nested.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/rustdoc-js/generics-nested.rs b/tests/rustdoc-js/generics-nested.rs
new file mode 100644
index 000000000..5140422e3
--- /dev/null
+++ b/tests/rustdoc-js/generics-nested.rs
@@ -0,0 +1,19 @@
+pub struct Out<A, B = ()> {
+ a: A,
+ b: B,
+}
+
+pub struct First<In = ()> {
+ in_: In,
+}
+
+pub struct Second;
+
+// Out<First<Second>>
+pub fn alef() -> Out<First<Second>> {
+ loop {}
+}
+
+pub fn bet() -> Out<First, Second> {
+ loop {}
+}