blob: be1c4b0e8e80e61cebe6a8b2c1ed5fdefeab05d5 [file] [log] [blame] [edit]
// Checks that a const param cannot be stored in a struct.
struct S<const C: u8>(C); //~ ERROR expected type, found const parameter
fn main() {}