test: Add a dvec indexing operator test, which serves as a test for #2615 (cross-crate operator overloading).
This commit is contained in:
parent
f3b2296ee4
commit
6a7c714df6
1 changed files with 6 additions and 0 deletions
6
src/test/run-pass/dvec-index-op.rs
Normal file
6
src/test/run-pass/dvec-index-op.rs
Normal file
|
@ -0,0 +1,6 @@
|
|||
fn main() {
|
||||
let x = dvec::dvec();
|
||||
x.push(1);
|
||||
io::println(fmt!("%d", x[0]));
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue