-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NLL inference doesn't work when it probably should #46545
Comments
Investigating. |
The problem is that the type of
|
Interestingly, the work towards three-point error messages in borrowck (#45988) made this quite clear. Running the compiler with "cause-dumping" enabled gives this output:
"cause dumping" tells us what led compiler to think that borrow should include this point. In this case, |
Closing this for now. |
NLL inference does not work with this code, where it probably should:
Similar code with a closure: https://gist.github.com/b0ed5e73062f343367fb9a22a2fe9d72
The text was updated successfully, but these errors were encountered: