1
Fork 0

add feature gate const_indexing

tracking issue is #29947
This commit is contained in:
Oliver Schneider 2015-11-20 10:43:04 +01:00
parent 6683fa4d42
commit 64051221b6
5 changed files with 22 additions and 0 deletions

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(const_indexing)]
const FOO: [u32; 3] = [1, 2, 3];
const BAR: u32 = FOO[5]; // no error, because the error below occurs before regular const eval