fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: `if` and `else` have incompatible types 2 --> $DIR/issue-83943.rs:7:9 3 | 4LL | / if true { 5LL | | "A".to_string() 6 | | --------------- expected because of this 7LL | | } else { 8LL | | "B" 9 | | ^^^- help: try using a conversion method: `.to_string()` 10 | | | 11 | | expected `String`, found `&str` 12LL | | }; 13 | |_____- `if` and `else` have incompatible types 14 15error: aborting due to previous error 16 17For more information about this error, try `rustc --explain E0308`.