-
Notifications
You must be signed in to change notification settings - Fork 13.3k
internal compiler error (rust 1.0.0-beta) with early return #24353
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
bactrace:
|
Same ICE with: fn main() {
return ();
let x = ();
x
} |
dotdash
added a commit
to dotdash/rust
that referenced
this issue
Apr 13, 2015
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Apr 14, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code produces an ICE on playpen with rust 1.0.0-beta or nightly:
The code compiles when the if condition is false (or not immediately true), when the last line uses an explicit return or when the value is returned without let expression.
The text was updated successfully, but these errors were encountered: