]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/vtable-res-trait-param.rs
rollup merge of #17355 : gamazeps/issue17210
[rust.git] / src / test / compile-fail / vtable-res-trait-param.rs
index 2baa89d52f28b935c5b358c7d09277ccf0a669dd..12cfe9c20fa9b5e6ba7d085e33ea949bfc1720a6 100644 (file)
@@ -24,8 +24,7 @@ fn gimme_an_a<A:TraitA>(&self, a: A) -> int {
 
 fn call_it<B:TraitB>(b: B)  -> int {
     let y = 4u;
-    b.gimme_an_a(y) //~ ERROR failed to find an implementation of trait TraitA
-    //~^ ERROR failed to find an implementation of trait TraitA
+    b.gimme_an_a(y) //~ ERROR the trait `TraitA` is not implemented
 }
 
 fn main() {