-
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
Compiler error when an async function is store in a async struct #98634
Comments
Just to add this also ICEs on current latest beta version: 1.62.0-beta.7 (2022-06-26 747075d) |
And to further add, it does not ICE on stable. @rustbot label: +regression-from-stable-to-beta |
Apologies, as mentioned in the OP it does ICE on stable too (but, at least on the Playground, only when running not just building; same as for other channels). @rustbot label: -I-prioritize -regression-from-stable-to-beta |
@rustbot claim |
…, r=compiler-errors Add test for issue 98634 Fixes rust-lang#98634
…, r=compiler-errors Add test for issue 98634 Fixes rust-lang#98634
…, r=compiler-errors Add test for issue 98634 Fixes rust-lang#98634
Hello,
I was trying differents things with Future and callbacks - to be more precise, I am trying to store an asynchronous callback inside an asynchronous struct.
In my attempts, I found an unexpected compiler crash - I have taken the care to create a minimal reproducible example, which you can see, and test for yourself - note that the crash occurs both on the latest "stable" and "nightly" versions:
Code
Meta
rustc --version --verbose
:Error output
Backtrace
On nightly
Meta
rustc +nightly --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: