rust/tests/ui/const-generics/generic-param-mismatch.rs

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

6 lines
109 B
Rust
Raw Normal View History

2020-11-10 08:35:02 +00:00
fn test<const N: usize, const M: usize>() -> [u8; M] {
[0; N] //~ ERROR mismatched types
}
fn main() {}