diff --git a/src/librustc/traits/error_reporting.rs b/src/librustc/traits/error_reporting.rs index ff3626ffb857..181efeb2f985 100644 --- a/src/librustc/traits/error_reporting.rs +++ b/src/librustc/traits/error_reporting.rs @@ -995,7 +995,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> { "it looks like you forgot to use parentheses to \ call the function: `{}({})`", ident, - body.arguments.iter() + body.params.iter() .map(|arg| match &arg.pat.node { hir::PatKind::Binding(_, _, ident, None) if ident.name != kw::SelfLower => ident.to_string(),