4 #![cfg_attr(full, feature(adt_const_params))]
5 #![cfg_attr(full, allow(incomplete_features))]
7 struct Const<const P: &'static ()>;
8 //[min]~^ ERROR `&'static ()` is forbidden as the type of a const generic parameter
11 const A: &'static () = unsafe {
12 std::mem::transmute(10 as *const ())