3 #![cfg_attr(full, feature(const_generics))]
4 #![cfg_attr(full, allow(incomplete_features))]
6 // This test confirms that the types can be inferred correctly for this example with const
7 // generics. Previously this would ICE, and more recently error.
9 struct Foo<const NUM_BYTES: usize>(pub [u8; NUM_BYTES]);
12 let _ = Foo::<3>([1, 2, 3]);