Skip to content

const fn ICE on playground. #56035

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

Closed
crlf0710 opened this issue Nov 18, 2018 · 1 comment · Fixed by #56065
Closed

const fn ICE on playground. #56035

crlf0710 opened this issue Nov 18, 2018 · 1 comment · Fixed by #56065
Assignees

Comments

@crlf0710
Copy link
Member

Minimal repro code:

const fn foo(a: u32) -> u32 {
    loop {}
}
@oli-obk oli-obk self-assigned this Nov 18, 2018
@hellow554
Copy link
Contributor

Even short, same problem:

const fn foo() {
    loop {}
}

bors added a commit that referenced this issue Nov 21, 2018
Replace the ICEing on const fn loops with an error

fixes #56035
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants