mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
test: Add an error pattern to small-negative-indexing
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
|
||||
// error-pattern:bounds check
|
||||
fn main() {
|
||||
let v = vec::from_fn(1024u) {|n| n};
|
||||
// this should trip a bounds check
|
||||
|
||||
Reference in New Issue
Block a user