]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/object-does-not-impl-trait.rs
rollup merge of #17355 : gamazeps/issue17210
[rust.git] / src / test / compile-fail / object-does-not-impl-trait.rs
index 0cbdb87d56c54413ac227628062789b1237a4a88..cfaf149a49cac6f4d4d2b2f45897e4d63688dd0a 100644 (file)
@@ -14,6 +14,6 @@
 
 trait Foo {}
 fn take_foo<F:Foo>(f: F) {}
-fn take_object(f: Box<Foo>) { take_foo(f); } //~ ERROR failed to find an implementation of trait
-//~^ ERROR failed to find an implementation
+fn take_object(f: Box<Foo>) { take_foo(f); }
+//~^ ERROR the trait `Foo` is not implemented
 fn main() {}