-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
ICE: assertion failed: (left == right) && (right == left)
(left: 11
, right: 0
)
#18514
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
Smaller test case that hits a different assert in the same general code path: ice.rs: pub trait Tr {
fn tr(&self);
}
pub struct St<V>(pub Vec<V>);
impl<V> Tr for St<V> {
fn tr(&self) {
match self {
&St(ref v) => {
v.iter();
}
}
}
} test.rs: extern crate ice;
use ice::{St,Tr};
fn main() {
let st: St<()> = St(vec![]);
st.tr();
} |
This one is pretty nasty. As far as I can tell, this is what's going on:
It seems like we want |
bkoropoff
added a commit
to bkoropoff/rust
that referenced
this issue
Nov 1, 2014
In some obscure circumstances, failure to do this can cause unsubstituted type parameters to show up where they aren't expected and cause an ICE. Closes rust-lang#18514
bkoropoff
added a commit
to bkoropoff/rust
that referenced
this issue
Nov 1, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ICE:
How to reproduce:
Main body:
Test body:
The text was updated successfully, but these errors were encountered: