]> git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-33903.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / issues / issue-33903.rs
1 // check-pass
2 #![allow(dead_code)]
3 // Issue 33903:
4 // Built-in indexing should be used even when the index is not
5 // trivially an integer
6 // Only built-in indexing can be used in constant expressions
7
8 const FOO: i32 = [12, 34][0 + 1];
9
10 fn main() {}