blob: 32970ccaa5dbc3d2c2a7067df3867a8753396079 [file] [log] [blame]
// Checks that a const param cannot be stored in a struct.
// revisions: full min
#![cfg_attr(full, feature(const_generics))]
#![cfg_attr(full, allow(incomplete_features))]
struct S<const C: u8>(C); //~ ERROR expected type, found const parameter
fn main() {}