This commit is contained in:
sunface 2022-03-05 14:53:49 +08:00
parent b01ca532d7
commit 2a170a4406
1 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,9 @@ fn main() {
fn main() {
let mut s = String::from("hello, ");
borrow_object(s)
borrow_object(s);
println!("Success!")
}
fn borrow_object(s: &String) {}