-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Cannot index and immediately call FnMut #65682
Comments
I can still reproduce this on latest nightly ( |
I can still reproduce this on the playground with nightly-2020-05-08 and stable 1.43.1 |
There seems to be something unaccounted for in mir's CC @oli-obk in case they have context around this already |
Looking further I think that the problem is that the |
I'm not sure what the correct thing will be, but I suspect that changing the following so that it modifies the adjustments for rust/src/librustc_typeck/check/callee.rs Lines 149 to 164 in 1ccb0b4
|
This code works now. |
Running this code on the latest stable (1.38.0) as well as nightly (2019-10-20)
gives the error
which is clearly wrong.
Notably, the same error does not occur if we switch everything to
Fn
:The text was updated successfully, but these errors were encountered: