1 // Checks that a const param cannot be stored in a struct.
4 #![cfg_attr(full, feature(const_generics))]
5 #![cfg_attr(full, allow(incomplete_features))]
6 #![cfg_attr(min, feature(min_const_generics))]
8 struct S<const C: u8>(C); //~ ERROR expected type, found const parameter