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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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() {}