]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-83943.rs
Rollup merge of #105120 - solid-rs:patch/kmc-solid/maintainance, r=thomcc
[rust.git] / src / test / ui / suggestions / issue-83943.rs
1 // run-rustfix
2
3 fn main() {
4     if true {
5         "A".to_string()
6     } else {
7         "B" //~ ERROR `if` and `else` have incompatible types
8     };
9 }