blob: 188460fff783281face8a48d25be5024723ae609 [file] [log] [blame]
// error-pattern:index out of bounds: the len is 5 but the index is 10
const C: &'static [u8; 5] = b"hello";
#[allow(const_err)]
fn mir() -> u8 {
C[10]
}
fn main() {
mir();
}