1 error[E0308]: mismatched types
2 --> $DIR/if-no-match-bindings.rs:18:8
7 | expected `bool`, found `&bool`
8 | help: consider dereferencing the borrow: `*b_ref()`
10 error[E0308]: mismatched types
11 --> $DIR/if-no-match-bindings.rs:19:8
13 LL | if b_mut_ref() {}
16 | expected `bool`, found `&mut bool`
17 | help: consider dereferencing the borrow: `*b_mut_ref()`
19 error[E0308]: mismatched types
20 --> $DIR/if-no-match-bindings.rs:20:8
25 | expected `bool`, found `&bool`
26 | help: consider removing the borrow: `true`
28 error[E0308]: mismatched types
29 --> $DIR/if-no-match-bindings.rs:21:8
34 | expected `bool`, found `&mut bool`
35 | help: consider removing the borrow: `true`
37 error[E0308]: mismatched types
38 --> $DIR/if-no-match-bindings.rs:24:11
43 | expected `bool`, found `&bool`
44 | help: consider dereferencing the borrow: `*b_ref()`
46 error[E0308]: mismatched types
47 --> $DIR/if-no-match-bindings.rs:25:11
49 LL | while b_mut_ref() {}
52 | expected `bool`, found `&mut bool`
53 | help: consider dereferencing the borrow: `*b_mut_ref()`
55 error[E0308]: mismatched types
56 --> $DIR/if-no-match-bindings.rs:26:11
61 | expected `bool`, found `&bool`
62 | help: consider removing the borrow: `true`
64 error[E0308]: mismatched types
65 --> $DIR/if-no-match-bindings.rs:27:11
67 LL | while &mut true {}
70 | expected `bool`, found `&mut bool`
71 | help: consider removing the borrow: `true`
73 error: aborting due to 8 previous errors
75 For more information about this error, try `rustc --explain E0308`.