blob: dfa1ece2f36578df3095ed52b37a4bce8136f347 [file] [log] [blame]
#![feature(min_const_generics)]
struct Const<const P: &'static ()>;
//~^ ERROR `&'static ()` is forbidden as the type of a const generic parameter
fn main() {
const A: &'static () = unsafe {
std::mem::transmute(10 as *const ())
};
let _ = Const::<{A}>;
}