about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMichael Hewson <michael@michaelhewson.ca>2018-10-05 16:35:42 -0400
committerMichael Hewson <michael@michaelhewson.ca>2018-11-01 18:16:59 -0400
commit3c56d8d0c21e15be8ea41835c647a0caecc0d0da (patch)
tree005e67459ac3e01afd08453d7b084e020942bc3a /src
parent48d7f8db3a64d8eb9bfb755e959d11fed7fdfbcc (diff)
downloadrust-3c56d8d0c21e15be8ea41835c647a0caecc0d0da.tar.gz
rust-3c56d8d0c21e15be8ea41835c647a0caecc0d0da.zip
fix error-index test
Diffstat (limited to 'src')
-rw-r--r--src/librustc_typeck/diagnostics.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs
index e53536fc55a..c81aea2465b 100644
--- a/src/librustc_typeck/diagnostics.rs
+++ b/src/librustc_typeck/diagnostics.rs
@@ -3109,7 +3109,10 @@ where
 
 ```
 #![feature(dispatch_from_dyn)]
-use std::ops::DispatchFromDyn;
+use std::{
+    ops::DispatchFromDyn,
+    marker::PhantomData,
+};
 
 struct Wrapper<T> {
     ptr: T,