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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
121 B
Rust
Raw Normal View History

2020-10-06 20:53:12 +00:00
// build-pass
#![feature(inline_const)]
use std::cell::Cell;
fn main() {
let _x = [const { Cell::new(0) }; 20];
}