-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Compiler unexpectedly panics #52170
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
I've hit the exact same issue and managed to reproduce it with a smaller example: let a = (1, vec![1, 2, 3]);
let mut acc = Vec::new();
let mut f: Box<FnMut(&(i32, Vec<i32>))> = Box::new(|(_, mut v)| {
acc.append(&mut v);
});
f(&a); Which panics with:
If you add the |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was told I should submit a report with regards to an internal compiler error.
I tried this code:
src\lib.rs
src\read\mod.rs
src\read\parse.rs
Output
The text was updated successfully, but these errors were encountered: