let s1: String = String::from("hello"); let s2: &str = "world"; // 字符串字面量,类型是 &str let s3: &str = &s1; // 从 String 借用得到 &str