-
Notifications
You must be signed in to change notification settings - Fork 13k
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 on all current Rust channels #42950
Comments
Mark-Simulacrum
added
the
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
label
Jun 28, 2017
Even more minified: struct D;
trait Tr {
type It;
fn foo(self) -> Option<Self::It>;
}
impl<'a> Tr for &'a D {
type It = ();
fn foo(self) -> Option<()> { None }
}
fn run<F>(f: F)
where for<'a> &'a D: Tr,
F: Fn(<&D as Tr>::It),
{
let d = &D;
while let Some(i) = d.foo() {
f(i);
}
}
fn main() {
run(|_| {});
} |
Looks like a duplicate of #33364. This should work with that bug fixed. |
Triage: this still ICEs |
CC #29997. |
closing as duplicate of #62529, which is where I will try to track future instances of this field of ICE. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While playing around with the scenario mentioned in https://users.rust-lang.org/t/intoiterator-and-lifetimes/11574, I hit an ICE with the following message:
This also happens on the current stable (rustc 1.18.0 (03fc9d6 2017-06-06)) channel as well. Here's a repro on the playground.
The text was updated successfully, but these errors were encountered: