summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-52820.fixed
blob: 514690de4d045054fb3cc953b0de983fbb4944c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-rustfix
#![allow(dead_code)]

struct Bravery {
    guts: String,
    brains: String,
}

fn main() {
    let guts = "mettle";
    let _ = Bravery {
        guts: guts.to_string(), //~ ERROR mismatched types
        brains: guts.to_string(), //~ ERROR mismatched types
    };
}