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