summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-js/generics-multi-trait.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-js/generics-multi-trait.rs')
-rw-r--r--tests/rustdoc-js/generics-multi-trait.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/rustdoc-js/generics-multi-trait.rs b/tests/rustdoc-js/generics-multi-trait.rs
new file mode 100644
index 000000000..e6fd06d25
--- /dev/null
+++ b/tests/rustdoc-js/generics-multi-trait.rs
@@ -0,0 +1,12 @@
+pub trait SomeTrait {}
+pub trait Zzzzzzzzzzzzzzzzzz {}
+
+pub fn bet<Nonononononononono: SomeTrait + Zzzzzzzzzzzzzzzzzz>() -> Result<Nonononononononono, ()> {
+ loop {}
+}
+
+pub fn beta<Nonononononononono: SomeTrait + Zzzzzzzzzzzzzzzzzz>(
+ _param: Result<Nonononononononono, ()>,
+) {
+ loop {}
+}