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

21 lines
396 B
Rust
Raw Normal View History

2012-07-27 14:54:34 -07: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
};
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() {
}