]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-52820.fixed
Rollup merge of #106625 - Swatinem:ref/cov6, r=nagisa
[rust.git] / tests / ui / suggestions / issue-52820.fixed
1 // run-rustfix
2 #![allow(dead_code)]
3
4 struct Bravery {
5     guts: String,
6     brains: String,
7 }
8
9 fn main() {
10     let guts = "mettle";
11     let _ = Bravery {
12         guts: guts.to_string(), //~ ERROR mismatched types
13         brains: guts.to_string(), //~ ERROR mismatched types
14     };
15 }