about summary refs log tree commit diff
path: root/tests/ui/suggestions/issue-52820.rs
blob: 605775fe0be4e78de3da36f7223c1f2e93e879e0 (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, //~ ERROR mismatched types
        brains: guts.clone(), //~ ERROR mismatched types
    };
}