]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/issues/issue-73491.rs
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / const-generics / issues / issue-73491.rs
1 // [full] check-pass
2 // revisions: full min
3 #![cfg_attr(full, feature(adt_const_params))]
4 #![cfg_attr(full, allow(incomplete_features))]
5
6 const LEN: usize = 1024;
7
8 fn hoge<const IN: [u32; LEN]>() {}
9 //[min]~^ ERROR `[u32; _]` is forbidden as the type of a const generic parameter
10
11 fn main() {}