mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
Add a test for that last bug. Oops.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
|
||||
fn main() {
|
||||
let v = vec::from_fn(1024u) {|n| n};
|
||||
// this should trip a bounds check
|
||||
log(error, v[-1i8]);
|
||||
}
|
||||
Reference in New Issue
Block a user