You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Suggests to initialize struct with private fields, instead of looking for typo #39226
I typo’d handle (local variable) with Handle (type with private fields I have no access to). Would have expected rustc to not emit such a note and maybe look for typos instead.
error[E0423]: expected value, found struct `Handle`
|
73 | handle: Handle,
| ^^^^^^ did you mean `Handle { /* fields */ }`?
Activity
Freyskeyd commentedon Jan 25, 2017
I agree. I think it's better to look for context before looking for Struct or any other Expression.
I will try to modify check order.
Auto merge of #39291 - Freyskeyd:check_context_E0423, r=petrochenkov
Freyskeyd commentedon May 1, 2017
This PR can be closed I think: refer to #39291
cc @nagisa
nagisa commentedon May 2, 2017
Great!