fn main() {
let a = 4;
let v = [0,1,2,3];
println!("{}", v[a]);
}
result: rustc 1.15.0-nightly (71c06a56a 2016-12-18)
thread 'main' panicked at 'index out of bounds: the len is 4 but the index is 4', <anon>:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.