rust/tests/ui/consts/check_const-feature-gated.rs

8 lines
83 B
Rust

//@ run-pass
const ARR: [usize; 1] = [2];
fn main() {
let _ = 5 << ARR[0];
}