about summary refs log tree commit diff
diff options
context:
space:
mode:
-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,