summary refs log tree commit diff
path: root/src/test/run-pass/issue-20763-2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/issue-20763-2.rs')
-rw-r--r--src/test/run-pass/issue-20763-2.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/run-pass/issue-20763-2.rs b/src/test/run-pass/issue-20763-2.rs
index a17c7b6ade4..d9701763571 100644
--- a/src/test/run-pass/issue-20763-2.rs
+++ b/src/test/run-pass/issue-20763-2.rs
@@ -8,7 +8,10 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-trait T0 { type O; }
+trait T0 {
+    type O;
+    fn dummy(&self) { }
+}
 
 struct S<A>(A);
 impl<A> T0 for S<A> { type O = A; }