test: Add an error pattern to small-negative-indexing

This commit is contained in:
Brian Anderson 2012-05-30 17:47:39 -07:00
parent ad292a8c73
commit 6b4cf00552

View file

@ -1,4 +1,4 @@
// error-pattern:bounds check
fn main() {
let v = vec::from_fn(1024u) {|n| n};
// this should trip a bounds check