3 #![cfg_attr(full, allow(incomplete_features))]
4 #![cfg_attr(full, feature(const_generics))]
6 use std::marker::PhantomData;
8 use std::mem::{self, MaybeUninit};
11 //~^ ERROR parameter `S` is never used
13 let x: S = MaybeUninit::uninit();
14 //[min]~^ ERROR generic parameters may not be used in const operations
15 //[full]~^^ ERROR mismatched types
16 let b = &*(&x as *const _ as *const S);
17 //[min]~^ ERROR generic parameters may not be used in const operations