]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/issue-68542-closure-in-array-len.rs
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / ui / consts / issue-68542-closure-in-array-len.rs
1 // Regression test for issue #68542
2 // Tests that we don't ICE when a closure appears
3 // in the length part of an array.
4
5 struct Bug {
6 a: [(); (|| { 0 })()] //~ ERROR calls in constants are limited to
7 }
8
9 fn main() {}