Description
Environment:
note: rustc 1.41.0-nightly (4007d4ef2 2019-12-01) running on x86_64-unknown-linux-gnu
note: compiler flags: -C codegen-units=1 -C debuginfo=2 --crate-type bin
The code:
#![feature(const_generics)]
#[derive(PartialEq, Eq)]
struct Config {
arr_size: usize
}
struct B<const CFG: Config> {
arr: [u8; {CFG.arr_size}]
}
fn main() {
}
gives ICE:
error: internal compiler error: constant in type had an ignored error: TooGeneric