//@ known-bug: #121963 #![feature(generic_const_exprs)] use std::marker::PhantomData; trait Arch { const CHANNEL_COUNT: usize = 2; } struct Channel { r: [u8; N], } struct Dram> { a: PhantomData, s: PhantomData, } struct C where Channel<{ A::CHANNEL_COUNT }, u8>: Sized, { b: Dram, // b: Dram>, // When I specified generic here, it worked } fn main() {}