Skip to content
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 with #![feature(existential_type)] + closure #58951

Closed
Centril opened this issue Mar 5, 2019 · 4 comments
Closed

ICE with #![feature(existential_type)] + closure #58951

Centril opened this issue Mar 5, 2019 · 4 comments

Comments

@Centril
Copy link
Contributor

@Centril Centril commented Mar 5, 2019

Encountered this when working on test cases for an RFC:

#![feature(existential_type)]

existential type A: Iterator;
fn def_a() -> A { 0..1 }
pub fn use_a() {
    def_a().map(|x| x);
}

cc @oli-obk

This seems related to other issues.

@oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Mar 18, 2019

I'm confused. Either this was fixed since yesterday's nightly (it still ICEs on nightly but works locally on master), or something really odd is going on

@Centril
Copy link
Contributor Author

@Centril Centril commented Mar 18, 2019

@oli-obk Is that the upstream master? Otherwise maybe someone merged a PR or something..

@Centril
Copy link
Contributor Author

@Centril Centril commented Apr 3, 2019

This still ICEs on nightly.

@Aaron1011
Copy link
Member

@Aaron1011 Aaron1011 commented Jul 30, 2019

This now compiles successfully on the latest nightly.

pietroalbini added a commit to pietroalbini/rust that referenced this issue Aug 1, 2019
…tril

Add test for issue-58951

Closes rust-lang#58951

r? @Centril
@bors bors closed this in #63158 Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants