rust/tests/ui/consts/issue-17756.rs

9 lines
159 B
Rust

//@ run-pass
#![allow(unused_variables)]
#![allow(non_upper_case_globals)]
const count : usize = 2 as usize;
fn main() {
let larger : [usize; count*2];
}