]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-83943.fixed
Rollup merge of #106751 - clubby789:const-intrinsic, r=GuillaumeGomez
[rust.git] / tests / ui / suggestions / issue-83943.fixed
1 // run-rustfix
2
3 fn main() {
4     if true {
5         "A".to_string()
6     } else {
7         "B".to_string() //~ ERROR `if` and `else` have incompatible types
8     };
9 }