rust/tests/ui/const-generics/issues/issue-80375.rs
2023-01-11 09:32:08 +00:00

5 lines
133 B
Rust

struct MyArray<const COUNT: usize>([u8; COUNT + 1]);
//~^ ERROR generic parameters may not be used in const operations
fn main() {}