about summary refs log tree commit diff
path: root/src/test/compile-fail/borrowck-overloaded-index-autoderef.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/borrowck-overloaded-index-autoderef.rs')
-rw-r--r--src/test/compile-fail/borrowck-overloaded-index-autoderef.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/compile-fail/borrowck-overloaded-index-autoderef.rs b/src/test/compile-fail/borrowck-overloaded-index-autoderef.rs
index 2253d7512c0..e8949d4b30b 100644
--- a/src/test/compile-fail/borrowck-overloaded-index-autoderef.rs
+++ b/src/test/compile-fail/borrowck-overloaded-index-autoderef.rs
@@ -11,6 +11,8 @@
 // Test that we still see borrowck errors of various kinds when using
 // indexing and autoderef in combination.
 
+use std::ops::{Index, IndexMut};
+
 struct Foo {
     x: int,
     y: int,