This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
c6b1739232
rust
/
src
/
test
/
run-pass
/
dvec-index-op.rs
7 lines
91 B
Rust
Raw
Normal View
History
Unescape
Escape
test: Add a dvec indexing operator test, which serves as a test for #2615 (cross-crate operator overloading).
2012-08-06 23:30:57 -05:00
fn
main
(
)
{
Camel case various core constructors
2012-08-27 16:22:25 -05:00
let
x
=
dvec
::
DVec
(
)
;
test: Add a dvec indexing operator test, which serves as a test for #2615 (cross-crate operator overloading).
2012-08-06 23:30:57 -05:00
x
.
push
(
1
)
;
io
::
println
(
fmt!
(
"
%d
"
,
x
[
0
]
)
)
;
}
Reference in New Issue
Copy Permalink