This commit is contained in:
sunface
2022-03-05 14:53:49 +08:00
parent b01ca532d7
commit 2a170a4406

View File

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