about summary refs log tree commit diff
path: root/src/test/compile-fail/object-does-not-impl-trait.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2014-09-12 10:45:39 -0400
committerNiko Matsakis <niko@alum.mit.edu>2014-09-15 14:58:49 -0400
commitb88f86782ecd9319e0e2c875bbf1efecd66ebf41 (patch)
tree2dab9ba700a8a309e59b2835cabd6a80390618ec /src/test/compile-fail/object-does-not-impl-trait.rs
parenta8d478db512803d25785a11c5b21634f8703b17f (diff)
downloadrust-b88f86782ecd9319e0e2c875bbf1efecd66ebf41.tar.gz
rust-b88f86782ecd9319e0e2c875bbf1efecd66ebf41.zip
Update error messages in compile-fail tests
Diffstat (limited to 'src/test/compile-fail/object-does-not-impl-trait.rs')
-rw-r--r--src/test/compile-fail/object-does-not-impl-trait.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/object-does-not-impl-trait.rs b/src/test/compile-fail/object-does-not-impl-trait.rs
index 0cbdb87d56c..cfaf149a49c 100644
--- a/src/test/compile-fail/object-does-not-impl-trait.rs
+++ b/src/test/compile-fail/object-does-not-impl-trait.rs
@@ -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() {}