auto merge of #8945 : alexcrichton/rust/ifmt-dont-move, r=thestinger

This commit is contained in:
bors 2013-09-03 09:50:58 -07:00
commit dee9d7f97f
2 changed files with 11 additions and 2 deletions

View file

@ -215,6 +215,11 @@ pub fn main() {
test_write();
test_print();
// make sure that format! doesn't move out of local variables
let a = ~3;
format!("{:?}", a);
format!("{:?}", a);
}
// Basic test to make sure that we can invoke the `write!` macro with an