$ cargo run | |
Compiling branches v0.1.0 (file:///projects/branches) | |
error[E0308]: if and else have incompatible types | |
--> src/main.rs:4:44 | |
| | |
4 | let number = if condition { 5 } else { "six" }; | |
| - ^^^^^ expected integer, found `&str` | |
| | | |
| expected because of this | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0308`. | |
error: could not compile `branches`. | |
To learn more, run the command again with --verbose. |