1 error[E0308]: `if` and `else` have incompatible types
2 --> $DIR/issue-82361.rs:10:9
6 | | - expected because of this
9 | | ^ expected `usize`, found `&usize`
11 | |_____- `if` and `else` have incompatible types
13 help: consider dereferencing the borrow
18 error[E0308]: `if` and `else` have incompatible types
19 --> $DIR/issue-82361.rs:16:9
23 | | - expected because of this
26 | | ^^ expected integer, found `&{integer}`
28 | |_____- `if` and `else` have incompatible types
30 help: consider removing the borrow
36 error[E0308]: `if` and `else` have incompatible types
37 --> $DIR/issue-82361.rs:22:9
41 | | - expected because of this
44 | | ^^^^^^ expected integer, found `&mut {integer}`
46 | |_____- `if` and `else` have incompatible types
48 help: consider removing the borrow
54 error: aborting due to 3 previous errors
56 For more information about this error, try `rustc --explain E0308`.