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