// build-pass #![feature(adt_const_params)] #![allow(incomplete_features)] #[derive(PartialEq, Eq)] pub struct UnitDims { pub time: u8, pub length: u8, } pub struct UnitValue; impl UnitValue { fn crash() {} } fn main() { UnitValue::<{ UnitDims { time: 1, length: 2 } }>::crash(); }