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

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

fn main() { }