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
afb8f01741
rust
/
src
/
test
/
run-pass
/
vec-late-init.rs
8 lines
107 B
Rust
Raw
Normal View
History
Unescape
Escape
Reformat source tree (minus a couple tests that are still grumpy).
2011-06-15 13:19:50 -05:00
Fix post-stmt drop calculations. Closes #106.
2010-07-12 00:31:56 -05:00
fn
main
(
)
{
Convert most working tests to ivecs I tried to pay attention to what was actually being tested so, e.g. when I test was just using a vec as a boxed thing, I converted to boxed ints, etc. Haven't converted the macro tests yet. Not sure what to do there.
2011-08-12 17:42:39 -05:00
let
later
:
[
int
]
;
Reformat This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-19 17:16:48 -05:00
if
true
{
later
=
[
1
]
;
}
else
{
later
=
[
2
]
;
}
log
later
[
0
]
;
Port the tests to the typaram foo<T> syntax.
2011-08-10 11:27:22 -05:00
}
Reference in New Issue
Copy Permalink