rust/tests/ui/inline-const/const-expr-array-init.rs

8 lines
95 B
Rust

//@ build-pass
use std::cell::Cell;
fn main() {
let _x = [const { Cell::new(0) }; 20];
}