summary refs log tree commit diff
path: root/src/test/ui/suggestions/format-borrow.rs
blob: 63930e7f787fd3f6d11abb3ee0d87c2f8c9b232f (plain)
1
2
3
4
5
6
fn main() {
    let a: String = &String::from("a");
    //~^ ERROR mismatched types
    let b: String = &format!("b");
    //~^ ERROR mismatched types
}