3 #![cfg_attr(full, feature(adt_const_params))]
4 #![cfg_attr(full, allow(incomplete_features))]
6 struct Const<const P: *const u32>; //~ ERROR: using raw pointers as const generic parameters
9 let _: Const<{ 15 as *const _ }> = Const::<{ 10 as *const _ }>;
10 let _: Const<{ 10 as *const _ }> = Const::<{ 10 as *const _ }>;