summary refs log tree commit diff
path: root/src/test/run-pass/issue-21909.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/issue-21909.rs')
-rw-r--r--src/test/run-pass/issue-21909.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/run-pass/issue-21909.rs b/src/test/run-pass/issue-21909.rs
index 5bbc90b2606..55b61dd1945 100644
--- a/src/test/run-pass/issue-21909.rs
+++ b/src/test/run-pass/issue-21909.rs
@@ -8,11 +8,15 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-trait A<X> {}
+trait A<X> {
+    fn dummy(&self, arg: X);
+}
 
 trait B {
     type X;
     type Y: A<Self::X>;
+
+    fn dummy(&self);
 }
 
 fn main () { }