2 #![cfg_attr(full, feature(const_generics))]
3 #![cfg_attr(full, allow(incomplete_features))]
4 #![cfg_attr(min, feature(min_const_generics))]
6 fn ty_param<T>() -> [u8; std::mem::size_of::<T>()] {
7 //[full]~^ ERROR constant expression depends on a generic parameter
8 //[min]~^^ ERROR generic parameters must not be used inside of non-trivial constant values
12 fn const_param<const N: usize>() -> [u8; N + 1] {
13 //[full]~^ ERROR constant expression depends on a generic parameter
14 //[min]~^^ ERROR generic parameters must not be used inside of non-trivial constant values