summary refs log tree commit diff
path: root/src/test/compile-fail/issue-2063.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/issue-2063.rs')
-rw-r--r--src/test/compile-fail/issue-2063.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/compile-fail/issue-2063.rs b/src/test/compile-fail/issue-2063.rs
index 00607f85034..aed395d17ea 100644
--- a/src/test/compile-fail/issue-2063.rs
+++ b/src/test/compile-fail/issue-2063.rs
@@ -12,10 +12,11 @@
 // cause compiler to loop.  Note that no instances
 // of such a type could ever be constructed.
 
+use std::marker::MarkerTrait;
 
 struct t(Box<t>); //~ ERROR this type cannot be instantiated
 
-trait to_str_2 {
+trait to_str_2 : MarkerTrait {
     fn my_to_string() -> String;
 }