//@ known-bug: #105238 #![allow(incomplete_features)] #![feature(generic_const_exprs)] trait Ret { type R; } struct Cond(std::marker::PhantomData, std::marker::PhantomData); impl Ret for Cond { type R = U; } impl Ret for Cond { type R = V; } struct RobinHashTable< const MAX_LENGTH: usize, CellIdx = as Ret>::R, > { _idx: CellIdx, } fn main() { use std::mem::size_of; println!("{}", size_of::>()); println!("{}", size_of::>()); }