rust/tests/ui/suggestions/issue-52820.fixed

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
283 B
Rust
Raw Normal View History

2022-07-10 12:19:45 -05:00
// 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
};
}