2012-06-12 14:05:23 -05:00
|
|
|
// Issue #2482.
|
|
|
|
|
|
|
|
fn main() {
|
2012-06-25 22:00:46 -05:00
|
|
|
let v1: [int]/~ = [10, 20, 30,]/~;
|
|
|
|
let v2: [int]/~ = [10, 20, 30]/~;
|
2012-06-12 14:05:23 -05:00
|
|
|
assert (v1[2] == v2[2]);
|
2012-06-25 22:00:46 -05:00
|
|
|
let v3: [int]/~ = [10,]/~;
|
|
|
|
let v4: [int]/~ = [10]/~;
|
2012-06-12 14:05:23 -05:00
|
|
|
assert (v3[0] == v4[0]);
|
|
|
|
}
|