-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Call to const trait methods in const functions no longer allowed #114808
Comments
See #110395. This issue is known and will be fixed once the effects rewrite is ready. Closing this issue as duplicate. |
I saw #114677 which was quite similar. Unfortunately, unlike it, adding I'll hold on upgrading nightly for now, good luck with the rewrite! |
Yep, this will be fixed in |
So... the above PR was merged two weeks ago, and yet as of 1.74.0-nightly (2023-08-26 69e97df) the code still fails to compile: see https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=4b29f98e3e645d4e5b51fc8ad0320901. Should this issue be reopened? |
You are supposed to enable the effects feature |
Code
I tried this code:
Version it worked on
It compiled successfully on nightly 2023-07-31, it may succeed on later versions.
Version with regression
It failed to compile on nightly 2023-08-13 with:
The text was updated successfully, but these errors were encountered: