]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/check/closure.rs
rollup merge of #21438: taralx/kill-racycell
[rust.git] / src / librustc_typeck / check / closure.rs
index 87287fe1d7bd631d594d8f492558ec705dce23e3..ffec1421f9289ae9512607c3f485c352b460d302 100644 (file)
@@ -51,7 +51,7 @@ pub fn check_expr_closure<'a,'tcx>(fcx: &FnCtxt<'a,'tcx>,
                     check_unboxed_closure(fcx, expr, kind, decl, body, None);
 
                     span_err!(fcx.ccx.tcx.sess, expr.span, E0187,
-                        "can't infer the \"kind\" of the closure, explicitly annotate it. e.g. \
+                        "can't infer the \"kind\" of the closure; explicitly annotate it; e.g. \
                         `|&:| {{}}`");
                 },
                 Some((sig, kind)) => {