点击运行
fn main() { let hello_string = String::from("Hello world"); print_infi(&hello_string); print!("Adil {}", hello_string); } fn print_infi(infi: &str) { println!("Steve {} ", infi); }
运行结果 :
正在执行...