about summary refs log tree commit diff
path: root/src/test/compile-fail/trait-bounds-sugar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/trait-bounds-sugar.rs')
-rw-r--r--src/test/compile-fail/trait-bounds-sugar.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/compile-fail/trait-bounds-sugar.rs b/src/test/compile-fail/trait-bounds-sugar.rs
index 3d264e681a3..e4058a0943a 100644
--- a/src/test/compile-fail/trait-bounds-sugar.rs
+++ b/src/test/compile-fail/trait-bounds-sugar.rs
@@ -10,8 +10,9 @@
 
 // Tests for "default" bounds inferred for traits with no bounds list.
 
+use std::marker::MarkerTrait;
 
-trait Foo {}
+trait Foo : MarkerTrait {}
 
 fn a(_x: Box<Foo+Send>) {
 }