]> 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 dd0ae87f3118dfd279a8c1e6af8a4b78d4a406ef..12cfe9c20fa9b5e6ba7d085e33ea949bfc1720a6 100644 (file)
@@ -24,10 +24,10 @@ 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
+    b.gimme_an_a(y) //~ ERROR the trait `TraitA` is not implemented
 }
 
 fn main() {
     let x = 3i;
-    assert!(call_it(x) == 22);
+    assert_eq!(call_it(x), 22);
 }