From 6b4cf00552ba2632ff35dfa90f8dab88137feb31 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 30 May 2012 17:47:39 -0700 Subject: [PATCH] test: Add an error pattern to small-negative-indexing --- src/test/run-fail/small-negative-indexing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/run-fail/small-negative-indexing.rs b/src/test/run-fail/small-negative-indexing.rs index 89aa8c80dc2b..0d73cc3e6c55 100644 --- a/src/test/run-fail/small-negative-indexing.rs +++ b/src/test/run-fail/small-negative-indexing.rs @@ -1,4 +1,4 @@ - +// error-pattern:bounds check fn main() { let v = vec::from_fn(1024u) {|n| n}; // this should trip a bounds check