]>
git.proxmox.com Git - rustc.git/blob - 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.
6 a
: [(); (|| { 0 }
)()] //~ ERROR calls in constants are limited to