]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/check/writeback.rs
rollup merge of #21438: taralx/kill-racycell
[rust.git] / src / librustc_typeck / check / writeback.rs
index 82da22eab98373c137a107e4881c89193f02b56b..52e81585875abe1a3dce1ba4bb9473f32666c29f 100644 (file)
@@ -416,7 +416,7 @@ fn report_error(&self, e: infer::fixup_err) {
 
                 ResolvingUnboxedClosure(_) => {
                     let span = self.reason.span(self.tcx);
-                    self.tcx.sess.span_err(span,
+                    span_err!(self.tcx.sess, span, E0196,
                                            "cannot determine a type for this \
                                             unboxed closure")
                 }