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

#![allow(incomplete_features)]
#![feature(inline_const)]

use std::cell::Cell;

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