2 #![feature(const_generics)]
3 //~^ WARN the feature `const_generics` is incomplete
5 // This test confirms that the types can be inferred correctly for this example with const
6 // generics. Previously this would ICE, and more recently error.
8 struct Foo<const NUM_BYTES: usize>(pub [u8; NUM_BYTES]);
11 let _ = Foo::<3>([1, 2, 3]);