]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/associated-types-invalid-trait-ref-issue-18865.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / associated-types-invalid-trait-ref-issue-18865.rs
index d48cff405a6371d473dfafb195d95016c9f43528..83726a1676d261911166fe0b541e9a515cdf4e54 100644 (file)
@@ -18,7 +18,7 @@ trait Foo<T> {
 
 fn f<T:Foo<isize>>(t: &T) {
     let u: <T as Foo<usize>>::Bar = t.get_bar();
-    //~^ ERROR the trait `Foo<usize>` is not implemented for the type `T`
+    //~^ ERROR the trait bound `T: Foo<usize>` is not satisfied
 }
 
 fn main() { }