X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fcompile-fail%2Fissue-23595-1.rs;h=483c205f42d6daa3a109942b1cd7e715cbcc5d3e;hb=892cb143e5984f220e6b26b48d972bd1f4644298;hp=b8a0c4846abebb431e5cb232fef8f013e165f096;hpb=9e78bc5d4f84ca1558c7d91245d0d537af35295b;p=rust.git diff --git a/src/test/compile-fail/issue-23595-1.rs b/src/test/compile-fail/issue-23595-1.rs index b8a0c4846ab..483c205f42d 100644 --- a/src/test/compile-fail/issue-23595-1.rs +++ b/src/test/compile-fail/issue-23595-1.rs @@ -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; - //~^ ERROR: the value of the associated types `Value` (from the trait `Hierarchy`), `ChildKey` + type Children = dyn Index; + //~^ ERROR: the value of the associated types fn data(&self) -> Option<(Self::Value, Self::Children)>; }