auto merge of #8945 : alexcrichton/rust/ifmt-dont-move, r=thestinger
This commit is contained in:
commit
dee9d7f97f
2 changed files with 11 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue