//@ 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> where CellIdx: Ret, { _idx: CellIdx::R, } fn main() { use std::mem::size_of; println!("{}", size_of::>()); println!("{}", size_of::>()); }