rust/src/test/ui/suggestions/format-borrow.rs
2019-03-02 11:25:00 -08:00

7 lines
153 B
Rust

fn main() {
let a: String = &String::from("a");
//~^ ERROR mismatched types
let b: String = &format!("b");
//~^ ERROR mismatched types
}