Open
Description
This is a simple code to check Rust's bound checking:
fn main() {
let a = [1, 2, 3, 4, 5];
let _x = a[9];
}
If we try to compile it with rustc
(not cargo
), rustc
produces a bunch of object files
If we fix the code and recompile it, rust clears the produced files.