]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/issue-23595-1.rs
Auto merge of #67290 - jonas-schievink:leak-audit, r=KodrAus
[rust.git] / src / test / compile-fail / issue-23595-1.rs
index b8a0c4846abebb431e5cb232fef8f013e165f096..483c205f42d6daa3a109942b1cd7e715cbcc5d3e 100644 (file)
@@ -1,12 +1,12 @@
 #![feature(associated_type_defaults)]
 
-use std::ops::{Index};
+use std::ops::Index;
 
 trait Hierarchy {
     type Value;
     type ChildKey;
-    type Children = Index<Self::ChildKey, Output=Hierarchy>;
-    //~^ ERROR: the value of the associated types `Value` (from the trait `Hierarchy`), `ChildKey`
+    type Children = dyn Index<Self::ChildKey, Output=dyn Hierarchy>;
+    //~^ ERROR: the value of the associated types
 
     fn data(&self) -> Option<(Self::Value, Self::Children)>;
 }