Move format-ref-cell test
This commit is contained in:
parent
f6a4189d05
commit
5be843fc54
2 changed files with 8 additions and 10 deletions
|
|
@ -1,10 +0,0 @@
|
|||
// run-pass
|
||||
|
||||
use std::cell::RefCell;
|
||||
|
||||
pub fn main() {
|
||||
let name = RefCell::new("rust");
|
||||
let what = RefCell::new("rocks");
|
||||
let msg = format!("{name} {}", &*what.borrow(), name=&*name.borrow());
|
||||
assert_eq!(msg, "rust rocks".to_string());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue