diff options
| -rw-r--r-- | src/librustc/traits/error_reporting.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/traits/error_reporting.rs b/src/librustc/traits/error_reporting.rs index ff3626ffb85..181efeb2f98 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(), |
