Compiler panic while compiling iterator with match #55913
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
B-RFC-approved
Blocker: Approved by a merged RFC but not yet implemented.
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
In all honesty this code is a bit contrived and nonsensical. I just happen to run into this panic while coding. It seems to have something do with both the
.iter()
and match onu64::max_value()
.I tried this code:
https://play.rust-lang.org/?version=beta&mode=debug&edition=2015&gist=4280b3c650ed29ba3645dc6f2a348ef5
https://gist.github.com/4280b3c650ed29ba3645dc6f2a348ef5
I expected to see this happen: give me an error about why this is wrong.
Instead, this happened: got panic
Meta
rustc --version --verbose
:rustc 1.30.0-beta.17 (f33946f 2018-10-23)
binary: rustc
commit-hash: f33946f
commit-date: 2018-10-23
host: x86_64-unknown-linux-gnu
release: 1.30.0-beta.17
LLVM version: 8.0
Backtrace:
The text was updated successfully, but these errors were encountered: