ICE with const_generic + associated type + double return statement #64519
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
F-const_generics
`#![feature(const_generics)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen:
It should build.
Instead, this happened:
rustc crashed with:
error: internal compiler error: src/librustc/infer/unify_key.rs:143: equating two const variables, both of which have known values
Possible workaround:
replace
Self::Item
with[u8;D]
.Meta
playground: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=849c7ac992950ce15a2fcf075fd61828
rustc version: 1.39.0-nightly 2019-09-15 96d07e0
The text was updated successfully, but these errors were encountered: