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
6e650f2d2c
rust
/
src
/
test
/
run-pass
/
struct-literal-dtor.rs
9 lines
112 B
Rust
Raw
Normal View
History
Unescape
Escape
rustc: Initialize the drop flag with the new struct literal syntax. Closes #3172.
2012-08-09 21:43:47 -05:00
struct
foo
{
Convert field terminators to commas. Stop parsing semis.
2012-09-07 16:50:47 -05:00
x
:
~
str
,
Replace several common macros of the form #m[...] with m!(...) This commit replaces nearly all remaining uses of #fmt, #debug, #error, and #info, and fixes some error messages...
2012-10-12 14:32:36 -05:00
drop
{
error!
(
"
%s
"
,
self
.
x
)
;
}
rustc: Initialize the drop flag with the new struct literal syntax. Closes #3172.
2012-08-09 21:43:47 -05:00
}
fn
main
(
)
{
let
_z
=
foo
{
x
:
~
"
Hello
"
}
;
}
Reference in New Issue
Copy Permalink