rust/src/test/run-pass/log-poly.rs
Brian Anderson dd4d45062d Make debug!, etc. macros not require a format string
The one thing `log` can still do is polymorphically log anything,
but debug!, etc. require a format string. With this patch
you can equivalently write `debug!(foo)` or `debug!("%?", foo)`
2013-03-07 18:45:22 -08:00

11 lines
109 B
Rust

enum Numbers {
Three
}
fn main() {
debug!(1);
info!(2.0);
warn!(Three);
error!(~[4]);
}