Closed
Description
The following produces no warnings:
pub const A: [i32;3] = [1,2,3];
pub const FOO: i32 = A[100000];
fn main() { println!("Verified"); }
But any attempt to use the FOO const will give error[E0080]: constant evaluation error
.
It would be nice for it to at least warn. and perhaps start erring once the "error on use" case can be handled with a stable const fn
.