rust/tests/ui/const-generics/issues/issue-80375.rs

5 lines
133 B
Rust
Raw Normal View History

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