rust/src/test/ui/issues/issue-33287.rs
2018-12-25 21:08:33 -07:00

12 lines
145 B
Rust

// compile-pass
#![allow(dead_code)]
#![allow(unused_variables)]
const A: [u32; 1] = [0];
fn test() {
let range = A[1]..;
}
fn main() { }