Skip to content

Commit 6b4cf00

Browse files
committed
test: Add an error pattern to small-negative-indexing
1 parent ad292a8 commit 6b4cf00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/run-fail/small-negative-indexing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
// error-pattern:bounds check
22
fn main() {
33
let v = vec::from_fn(1024u) {|n| n};
44
// this should trip a bounds check

0 commit comments

Comments
 (0)