]> 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 17083933afaadb7118b44bd30f7349e814dc3ffb..cfaf149a49cac6f4d4d2b2f45897e4d63688dd0a 100644 (file)
@@ -14,5 +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
+fn take_object(f: Box<Foo>) { take_foo(f); }
+//~^ ERROR the trait `Foo` is not implemented
 fn main() {}