test: Add an error pattern to small-negative-indexing
This commit is contained in:
parent
ad292a8c73
commit
6b4cf00552
1 changed files with 1 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
// error-pattern:bounds check
|
||||
fn main() {
|
||||
let v = vec::from_fn(1024u) {|n| n};
|
||||
// this should trip a bounds check
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue