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

22 lines
397 B
Rust
Raw Normal View History

// Testing that calling fmt! (via debug!) doesn't complain about impure borrows
2012-07-27 14:54:34 -07:00
pure fn foo() {
let a = {
b: @"hi",
c: 0,
d: 1,
e: 'a',
f: 0.0,
g: true
};
2012-08-22 17:24:52 -07: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 14:54:34 -07:00
}
fn main() {
}