Skip to content

Commit e407206

Browse files
committed
Auto merge of #43867 - GuillaumeGomez:useless-help, r=nikomatsakis
Remove useless help part Part of #32658. I think this error should be splitted into two parts, each more specific (`anonymous function` vs `type method`).
2 parents be0f77d + 3af0e4a commit e407206

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
@@ -2968,8 +2968,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
29682968
type_error_struct!(self.tcx().sess, field.span, expr_t, E0615,
29692969
"attempted to take value of method `{}` on type `{}`",
29702970
field.node, expr_t)
2971-
.help("maybe a `()` to call it is missing? \
2972-
If not, try an anonymous function")
2971+
.help("maybe a `()` to call it is missing?")
29732972
.emit();
29742973
self.tcx().types.err
29752974
} else {

0 commit comments

Comments
 (0)