about summary refs log tree commit diff
path: root/src/test/compile-fail/no_send-struct.rs
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <arielb1@mail.tau.ac.il>2016-03-29 20:12:31 +0300
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2016-04-05 20:58:58 +0300
commit8a461d940cc6019bd332b1ea732d79d3216d9108 (patch)
tree847015cb866fee03fcc9ebb78c4d8baefd7b1551 /src/test/compile-fail/no_send-struct.rs
parent513d9f208cc52ab71e2899db30aaead5c82c1a74 (diff)
downloadrust-8a461d940cc6019bd332b1ea732d79d3216d9108.tar.gz
rust-8a461d940cc6019bd332b1ea732d79d3216d9108.zip
suggest adding a where-clause when that can help
suggest adding a where-clause when there is an unmet trait-bound that
can be satisfied if some type can implement it.
Diffstat (limited to 'src/test/compile-fail/no_send-struct.rs')
-rw-r--r--src/test/compile-fail/no_send-struct.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/no_send-struct.rs b/src/test/compile-fail/no_send-struct.rs
index 14e18558a71..037753e6c5f 100644
--- a/src/test/compile-fail/no_send-struct.rs
+++ b/src/test/compile-fail/no_send-struct.rs
@@ -23,5 +23,5 @@ fn bar<T: Send>(_: T) {}
 fn main() {
     let x = Foo { a: 5 };
     bar(x);
-    //~^ ERROR the trait `std::marker::Send` is not implemented
+    //~^ ERROR `Foo : std::marker::Send` is not satisfied
 }