summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-block-non-item-statement-3.rs
blob: c513946d1891758be5b2d3d4198bf296cdf13662 (plain)
1
2
3
4
5
6
7
8
// run-pass
#![allow(dead_code, unused)]

type Array = [u32; {  let x = 2; 5 }];

pub fn main() {
    let _: Array = [0; 5];
}