ICE: Associated constant and impl trait #64848
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-medium
Medium priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When the associated constant of an impl trait is referenced it creates an ICE:
Meta
This panics on stable and nightly. Tested on play.rust-lang.org, macOS and in Docker:
rustc --version --verbose
:rustc 1.38.0 (625451e 2019-09-23)
binary: rustc
commit-hash: 625451e
commit-date: 2019-09-23
host: x86_64-unknown-linux-gnu
release: 1.38.0
LLVM version: 9.0
The panic originates from the same assertion as in #61432:
Backtrace:
The text was updated successfully, but these errors were encountered: