Skip to content

Commit e575792

Browse files
committed
Add a test for that last bug. Oops.
1 parent ea8d4d7 commit e575792

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
fn main() {
3+
let v = vec::from_fn(1024u) {|n| n};
4+
// this should trip a bounds check
5+
log(error, v[-1i8]);
6+
}

0 commit comments

Comments
 (0)