From 3af0e4a2ad40253b67e5259b6cb0a5b6c289d3e9 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 14 Aug 2017 21:56:55 +0200 Subject: [PATCH] Remove useless help part --- src/librustc_typeck/check/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs index 17611af5ac4..0bb6f128d63 100644 --- a/src/librustc_typeck/check/mod.rs +++ b/src/librustc_typeck/check/mod.rs @@ -2944,8 +2944,7 @@ fn check_field(&self, type_error_struct!(self.tcx().sess, field.span, expr_t, E0615, "attempted to take value of method `{}` on type `{}`", field.node, expr_t) - .help("maybe a `()` to call it is missing? \ - If not, try an anonymous function") + .help("maybe a `()` to call it is missing?") .emit(); self.tcx().types.err } else { -- 2.44.0