mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
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`).
This commit is contained in:
commit
e407206534
@ -2968,8 +2968,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user