diff options
Diffstat (limited to 'tests/ui/consts/issue-29914-2.rs')
-rw-r--r-- | tests/ui/consts/issue-29914-2.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/consts/issue-29914-2.rs b/tests/ui/consts/issue-29914-2.rs new file mode 100644 index 000000000..626de269d --- /dev/null +++ b/tests/ui/consts/issue-29914-2.rs @@ -0,0 +1,6 @@ +// run-pass +const ARR: [usize; 5] = [5, 4, 3, 2, 1]; + +fn main() { + assert_eq!(3, ARR[ARR[3]]); +} |