mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-29 07:09:20 +00:00
10 lines
217 B
Rust
10 lines
217 B
Rust
// Regression test for issue #68542
|
|
// Tests that we don't ICE when a closure appears
|
|
// in the length part of an array.
|
|
|
|
struct Bug {
|
|
a: [(); (|| { 0 })()] //~ ERROR cannot call non-const closure
|
|
}
|
|
|
|
fn main() {}
|