2012-10-12 12:32:36 -07:00
|
|
|
// 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() {
|
2012-10-12 12:32:36 -07:00
|
|
|
}
|