error[E0308]: `if` and `else` have incompatible types
  --> $DIR/consider-borrowing-141810-1.rs:4:12
   |
LL |       let x = if true {
   |               ------- `if` and `else` have incompatible types
LL |           &true
   |           ----- expected because of this
LL |       } else if false {
   |  ____________^
LL | |         true
LL | |     } else {
LL | |         true
LL | |     };
   | |_____^ expected `&bool`, found `bool`
   |
help: consider borrowing here
   |
LL ~         &true
LL |     } else {
LL ~         &true
   |

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.
