Skip to content

Commit 6a7c714

Browse files
committed
test: Add a dvec indexing operator test, which serves as a test for #2615 (cross-crate operator overloading).
1 parent f3b2296 commit 6a7c714

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/run-pass/dvec-index-op.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
fn main() {
2+
let x = dvec::dvec();
3+
x.push(1);
4+
io::println(fmt!("%d", x[0]));
5+
}
6+

0 commit comments

Comments
 (0)