summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-33287.rs
blob: 770eb7c02bbae7d9c7c20a0352afbeab8448abfe (plain)
1
2
3
4
5
6
7
8
9
10
// build-pass
#![allow(dead_code)]
#![allow(unused_variables)]
const A: [u32; 1] = [0];

fn test() {
    let range = A[1]..;
}

fn main() { }