about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc/middle/ty.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc/middle/ty.rs b/src/librustc/middle/ty.rs
index 8dff4d2e565..ad525387b29 100644
--- a/src/librustc/middle/ty.rs
+++ b/src/librustc/middle/ty.rs
@@ -5132,7 +5132,8 @@ pub fn note_and_explain_type_err<'tcx>(cx: &ctxt<'tcx>, err: &type_err<'tcx>) {
             let found_str = ty_sort_string(cx, values.found);
             if expected_str == found_str && expected_str == "closure" {
                 cx.sess.note(&format!("no two closures, even if identical, have the same type"));
-                cx.sess.help(&format!("consider boxing your closure and/or using it as a trait object"));
+                cx.sess.help(&format!("consider boxing your closure and/or \
+                                        using it as a trait object"));
             }
         }
         _ => {}