about summary refs log tree commit diff
path: root/src/test/compile-fail/unboxed-closure-feature-gate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/unboxed-closure-feature-gate.rs')
-rw-r--r--src/test/compile-fail/unboxed-closure-feature-gate.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/compile-fail/unboxed-closure-feature-gate.rs b/src/test/compile-fail/unboxed-closure-feature-gate.rs
index 3536244f011..74a6f869f63 100644
--- a/src/test/compile-fail/unboxed-closure-feature-gate.rs
+++ b/src/test/compile-fail/unboxed-closure-feature-gate.rs
@@ -11,8 +11,12 @@
 // Check that parenthetical notation is feature-gated except with the
 // `Fn` traits.
 
+use std::marker;
+
 trait Foo<A> {
     type Output;
+
+    fn dummy(&self, a: A) { }
 }
 
 fn main() {