about summary refs log tree commit diff
path: root/tests/rustdoc-js/trait-methods.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-js/trait-methods.rs')
-rw-r--r--tests/rustdoc-js/trait-methods.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/rustdoc-js/trait-methods.rs b/tests/rustdoc-js/trait-methods.rs
new file mode 100644
index 00000000000..c88f5edfd55
--- /dev/null
+++ b/tests/rustdoc-js/trait-methods.rs
@@ -0,0 +1,4 @@
+pub trait MyTrait {
+    type Item;
+    fn next(&mut self) -> Option<Self::Item>;
+}