We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37de408 commit 5dc3721Copy full SHA for 5dc3721
[refs]
@@ -1,5 +1,5 @@
1
---
2
-refs/heads/master: ea8d4d7f1719a53c066713e6893b33556b69dbfe
+refs/heads/master: e5757923cd1ad20fdee7571aeaa0be445e51f379
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
trunk/src/test/run-fail/small-negative-indexing.rs
@@ -0,0 +1,6 @@
+
+fn main() {
+ let v = vec::from_fn(1024u) {|n| n};
+ // this should trip a bounds check
+ log(error, v[-1i8]);
6
+}
0 commit comments