Rewrite everything to use [] instead of vec() in value position.
This commit is contained in:
parent
ae030c5bf2
commit
fbbc1a77d2
87 changed files with 1137 additions and 1134 deletions
|
|
@ -6,7 +6,7 @@
|
|||
// error-pattern:bounds check
|
||||
|
||||
fn main() {
|
||||
let vec[int] v = vec(10);
|
||||
let vec[int] v = [10];
|
||||
let int x = 0;
|
||||
assert (v.(x) == 10);
|
||||
// Bounds-check failure.
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
// error-pattern:bounds check
|
||||
|
||||
fn main() {
|
||||
let vec[int] v = vec(10, 20);
|
||||
let vec[int] v = [10, 20];
|
||||
let int x = 0;
|
||||
assert (v.(x) == 10);
|
||||
// Bounds-check failure.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue