diff --git a/src/librustc/middle/infer/mod.rs b/src/librustc/middle/infer/mod.rs index 5339464503b3..59ca795e5f75 100644 --- a/src/librustc/middle/infer/mod.rs +++ b/src/librustc/middle/infer/mod.rs @@ -1328,9 +1328,10 @@ pub fn report_conflicting_default_types(&self, }) }; - self.report_and_explain_type_error(trace, &ty::type_err::terr_ty_param_default_mismatch(ty::expected_found { - expected: expected, - found: actual + self.report_and_explain_type_error(trace, + &ty::type_err::terr_ty_param_default_mismatch(ty::expected_found { + expected: expected, + found: actual })); }