summaryrefslogtreecommitdiffstats
path: root/src/test/ui/inline-const/const-expr-array-init.rs
blob: 8a92cdbc0f9811975808fa07199033501016a27c (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];
}