1 error[E0308]: `if` and `else` have incompatible types
2 --> $DIR/issue-83943.rs:7:9
6 | | --------------- expected because of this
9 | | ^^^- help: try using a conversion method: `.to_string()`
11 | | expected struct `String`, found `&str`
13 | |_____- `if` and `else` have incompatible types
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0308`.