summary refs log tree commit diff
path: root/src/test/run-pass/syntax-trait-polarity.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/syntax-trait-polarity.rs')
-rw-r--r--src/test/run-pass/syntax-trait-polarity.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/run-pass/syntax-trait-polarity.rs b/src/test/run-pass/syntax-trait-polarity.rs
index 3344844d49f..340ad2a531a 100644
--- a/src/test/run-pass/syntax-trait-polarity.rs
+++ b/src/test/run-pass/syntax-trait-polarity.rs
@@ -10,17 +10,17 @@
 
 #![feature(optin_builtin_traits)]
 
-use std::marker::Send;
+use std::marker::{MarkerTrait, Send};
 
 struct TestType;
 
 impl TestType {}
 
-trait TestTrait {}
+trait TestTrait : MarkerTrait {}
 
 impl !Send for TestType {}
 
-struct TestType2<T>;
+struct TestType2<T>(T);
 
 impl<T> TestType2<T> {}