about summary refs log tree commit diff
path: root/tests/ui/inline-const/const-expr-array-init.rs
blob: 075c27c1cc92dd3cedb4d785d4db99b4b765f425 (plain)
1
2
3
4
5
6
7
8
9
//@ build-pass

#![feature(inline_const)]

use std::cell::Cell;

fn main() {
    let _x = [const { Cell::new(0) }; 20];
}