Skip to content

Commit 3af0e4a

Browse files
Remove useless help part
1 parent b1ff235 commit 3af0e4a

File tree

1 file changed

+1
-2
lines changed
  • src/librustc_typeck/check

1 file changed

+1
-2
lines changed

src/librustc_typeck/check/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -2944,8 +2944,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
29442944
type_error_struct!(self.tcx().sess, field.span, expr_t, E0615,
29452945
"attempted to take value of method `{}` on type `{}`",
29462946
field.node, expr_t)
2947-
.help("maybe a `()` to call it is missing? \
2948-
If not, try an anonymous function")
2947+
.help("maybe a `()` to call it is missing?")
29492948
.emit();
29502949
self.tcx().types.err
29512950
} else {

0 commit comments

Comments
 (0)