rust/src/test/run-pass/struct-literal-dtor.rs
Kevin Cantu 1bede1f5e0 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:14:48 -07:00

9 lines
112 B
Rust

struct foo {
x: ~str,
drop { error!("%s", self.x); }
}
fn main() {
let _z = foo { x: ~"Hello" };
}