mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 12:40:14 +03:00
14 lines
246 B
Rust
14 lines
246 B
Rust
//! Regression test for https://github.com/rust-lang/rust/issues/33287
|
|
|
|
//@ build-pass
|
|
#![allow(dead_code)]
|
|
#![allow(unused_variables)]
|
|
#![allow(unconditional_panic)]
|
|
const A: [u32; 1] = [0];
|
|
|
|
fn test() {
|
|
let range = A[1]..;
|
|
}
|
|
|
|
fn main() { }
|