fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
471 B16 linesraw
1error[E0308]: `if` and `else` have incompatible types
2  --> $DIR/dont-suggest-box-on-empty-else-arm.rs:4:12
3   |
4LL |       if true {
5   |       ------- `if` and `else` have incompatible types
6LL |           "boo2"
7   |           ------ expected because of this
8LL |       } else {
9   |  ____________^
10LL | |
11LL | |     }
12   | |_____^ expected `&str`, found `()`
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0308`.