diff --git a/compiler/rustc_hir_typeck/src/callee.rs b/compiler/rustc_hir_typeck/src/callee.rs index d29ba810d6416..ed9fe8fc856ed 100644 --- a/compiler/rustc_hir_typeck/src/callee.rs +++ b/compiler/rustc_hir_typeck/src/callee.rs @@ -789,6 +789,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { self.register_predicates(obligations); } Err(e) => { + // FIXME(effects): better diagnostic self.err_ctxt().report_mismatched_consts(&cause, effect, param, e).emit(); } }