]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/issues/issue-73491.rs
Update upstream source from tag 'upstream/1.51.0+dfsg1'
[rustc.git] / src / test / ui / const-generics / issues / issue-73491.rs
1 // [full] check-pass
2 // revisions: full min
3 #![cfg_attr(full, feature(const_generics))]
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() {}