// revisions: full min #![cfg_attr(full, feature(const_param_types))] #![cfg_attr(full, allow(incomplete_features))] struct Const; //~ ERROR: using raw pointers as const generic parameters fn main() { let _: Const<{ 15 as *const _ }> = Const::<{ 10 as *const _ }>; let _: Const<{ 10 as *const _ }> = Const::<{ 10 as *const _ }>; }