summary refs log tree commit diff
path: root/src/test/run-pass/issue-20055-box-trait.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/issue-20055-box-trait.rs')
-rw-r--r--src/test/run-pass/issue-20055-box-trait.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/run-pass/issue-20055-box-trait.rs b/src/test/run-pass/issue-20055-box-trait.rs
index 836e78b5b51..572a0d82528 100644
--- a/src/test/run-pass/issue-20055-box-trait.rs
+++ b/src/test/run-pass/issue-20055-box-trait.rs
@@ -16,7 +16,9 @@
 // whichever arm is run, and subsequently dropped at the end of the
 // statement surrounding the `match`.
 
-trait Boo { }
+trait Boo {
+    fn dummy(&self) { }
+}
 
 impl Boo for [i8; 1] { }
 impl Boo for [i8; 2] { }