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 ad292a8 commit 6b4cf00Copy full SHA for 6b4cf00
src/test/run-fail/small-negative-indexing.rs
@@ -1,4 +1,4 @@
1
-
+// error-pattern:bounds check
2
fn main() {
3
let v = vec::from_fn(1024u) {|n| n};
4
// this should trip a bounds check
0 commit comments