2019-03-02 13:25:00 -06:00
|
|
|
fn main() {
|
|
|
|
let a: String = &String::from("a");
|
|
|
|
//~^ ERROR mismatched types
|
|
|
|
let b: String = &format!("b");
|
|
|
|
//~^ ERROR mismatched types
|
2021-06-02 12:06:45 -05:00
|
|
|
let c: String = &mut format!("c");
|
|
|
|
//~^ ERROR mismatched types
|
|
|
|
let d: String = &mut (format!("d"));
|
|
|
|
//~^ ERROR mismatched types
|
2019-03-02 13:25:00 -06:00
|
|
|
}
|