-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE: autoderef failed #21306
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
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
FWIW, the following works: use std::sync::Arc;
fn test() {
let command = Arc::new(Box::new(|&:| {}));
(*command)();
} |
edwardw
added a commit
to edwardw/rust
that referenced
this issue
Jan 23, 2015
As part of rust-lang#20432, upvar checking is now moved out of regionck to its own pass and before regionck. But regionck has some type resolution of it own. Without them, now separated upvar checking may be tripped over by residue `ty_infer`. Closes rust-lang#21306
edwardw
added a commit
to edwardw/rust
that referenced
this issue
Jan 23, 2015
As part of rust-lang#20432, upvar checking is now moved out of regionck to its own pass and before regionck. But regionck has some type resolution of its own. Without them, now separated upvar checking may be tripped over by residue `ty_infer`. Closes rust-lang#21306
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I have a weird compiler error when using Arc to store boxed closures:
It gives the following error:
However, the following code works:
The text was updated successfully, but these errors were encountered: