• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download

ty_param<T>() -> [u8; std::mem::size_of::<T>()]1 fn ty_param<T>() -> [u8; std::mem::size_of::<T>()] {
2     //~^ ERROR generic parameters may not be used in const operations
3     todo!()
4 }
5 
const_param<const N: usize>() -> [u8; N + 1]6 fn const_param<const N: usize>() -> [u8; N + 1] {
7     //~^ ERROR generic parameters may not be used in const operations
8     todo!()
9 }
10 
main()11 fn main() {}
12