]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/associated-types-no-suitable-supertrait.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / associated-types-no-suitable-supertrait.rs
index 0b1d6a5b71ad20e0abb8a6bc1809ab559747fcb0..ec38595e8fe06fa6e15fe6229270e8bc45b204a5 100644 (file)
@@ -25,12 +25,12 @@ trait Get {
 
 trait Other {
     fn uhoh<U:Get>(&self, foo: U, bar: <Self as Get>::Value) {}
-    //~^ ERROR the trait `Get` is not implemented for the type `Self`
+    //~^ ERROR the trait bound `Self: Get` is not satisfied
 }
 
 impl<T:Get> Other for T {
     fn uhoh<U:Get>(&self, foo: U, bar: <(T, U) as Get>::Value) {}
-    //~^ ERROR the trait `Get` is not implemented for the type `(T, U)`
+    //~^ ERROR the trait bound `(T, U): Get` is not satisfied
 }
 
 fn main() { }