about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-10-30 08:57:36 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-10-30 09:29:24 -0700
commitce63fbc7bdc08d313c569bd3b5ba04dd97dd44ca (patch)
treee8a58a7fd1cec3c289ff16149bb0edd07c4997c7 /src/test
parent1e919c93c7b643bf81fd065c2be947138621143d (diff)
parentcb5f9799421c7ae9289295acdf15546a1e68da91 (diff)
downloadrust-ce63fbc7bdc08d313c569bd3b5ba04dd97dd44ca.tar.gz
rust-ce63fbc7bdc08d313c569bd3b5ba04dd97dd44ca.zip
rollup merge of #18409 : gamazeps/issue15273
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/coerce-bare-fn-to-closure-and-proc.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/compile-fail/coerce-bare-fn-to-closure-and-proc.rs b/src/test/compile-fail/coerce-bare-fn-to-closure-and-proc.rs
index c165802d61f..087ebf4e28c 100644
--- a/src/test/compile-fail/coerce-bare-fn-to-closure-and-proc.rs
+++ b/src/test/compile-fail/coerce-bare-fn-to-closure-and-proc.rs
@@ -13,7 +13,9 @@ fn foo() {}
 fn main() {
     let f = foo;
     let f_closure: || = f;
-    //~^ ERROR: cannot coerce non-statically resolved bare fn
+    //~^ ERROR: cannot coerce non-statically resolved bare fn to closure
+    //~^ HELP: consider embedding the function in a closure
     let f_proc: proc() = f;
-    //~^ ERROR: cannot coerce non-statically resolved bare fn
+    //~^ ERROR: cannot coerce non-statically resolved bare fn to closure
+    //~^ HELP: consider embedding the function in a closure
 }