rust/src/test/run-pass/pure-fmt.rs

21 lines
396 B
Rust
Raw Normal View History

2012-07-27 16:54:34 -05:00
// Testing that calling #fmt (via #debug) doesn't complain about impure borrows
pure fn foo() {
let a = {
b: @"hi",
c: 0,
d: 1,
e: 'a',
f: 0.0,
g: true
};
2012-08-22 19:24:52 -05:00
debug!("test %?", a.b);
debug!("test %u", a.c);
debug!("test %i", a.d);
debug!("test %c", a.e);
debug!("test %f", a.f);
debug!("test %b", a.g);
2012-07-27 16:54:34 -05:00
}
fn main() {
}