Non-capturing closures in statics #44669
Labels
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Now that non-capturing closures can be coerced to function pointers, I really want to do things like this:
but while it seems to work perfectly, it still returns this warning:
Why would this become an hard error? Is this an error in the lint, or is there a problem in doing this?
The text was updated successfully, but these errors were encountered: