2020-09-14 16:39:43 -05:00
|
|
|
fn ty_param<T>() -> [u8; std::mem::size_of::<T>()] {
|
2021-08-27 11:04:57 -05:00
|
|
|
//~^ ERROR generic parameters may not be used in const operations
|
2020-09-14 16:39:43 -05:00
|
|
|
todo!()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn const_param<const N: usize>() -> [u8; N + 1] {
|
2021-08-27 11:04:57 -05:00
|
|
|
//~^ ERROR generic parameters may not be used in const operations
|
2020-09-14 16:39:43 -05:00
|
|
|
todo!()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|