fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0308]: mismatched types 2 --> $DIR/if-no-match-bindings.rs:18:8 3 | 4LL | if b_ref() {} 5 | ^^^^^^^ 6 | | 7 | expected bool, found &bool 8 | help: consider dereferencing the borrow: `*b_ref()` 9 | 10 = note: expected type `bool` 11 found type `&bool` 12 13error[E0308]: mismatched types 14 --> $DIR/if-no-match-bindings.rs:19:8 15 | 16LL | if b_mut_ref() {} 17 | ^^^^^^^^^^^ 18 | | 19 | expected bool, found &mut bool 20 | help: consider dereferencing the borrow: `*b_mut_ref()` 21 | 22 = note: expected type `bool` 23 found type `&mut bool` 24 25error[E0308]: mismatched types 26 --> $DIR/if-no-match-bindings.rs:20:8 27 | 28LL | if &true {} 29 | ^^^^^ 30 | | 31 | expected bool, found &bool 32 | help: consider removing the borrow: `true` 33 | 34 = note: expected type `bool` 35 found type `&bool` 36 37error[E0308]: mismatched types 38 --> $DIR/if-no-match-bindings.rs:21:8 39 | 40LL | if &mut true {} 41 | ^^^^^^^^^ 42 | | 43 | expected bool, found &mut bool 44 | help: consider removing the borrow: `true` 45 | 46 = note: expected type `bool` 47 found type `&mut bool` 48 49error[E0308]: mismatched types 50 --> $DIR/if-no-match-bindings.rs:24:11 51 | 52LL | while b_ref() {} 53 | ^^^^^^^ 54 | | 55 | expected bool, found &bool 56 | help: consider dereferencing the borrow: `*b_ref()` 57 | 58 = note: expected type `bool` 59 found type `&bool` 60 61error[E0308]: mismatched types 62 --> $DIR/if-no-match-bindings.rs:25:11 63 | 64LL | while b_mut_ref() {} 65 | ^^^^^^^^^^^ 66 | | 67 | expected bool, found &mut bool 68 | help: consider dereferencing the borrow: `*b_mut_ref()` 69 | 70 = note: expected type `bool` 71 found type `&mut bool` 72 73error[E0308]: mismatched types 74 --> $DIR/if-no-match-bindings.rs:26:11 75 | 76LL | while &true {} 77 | ^^^^^ 78 | | 79 | expected bool, found &bool 80 | help: consider removing the borrow: `true` 81 | 82 = note: expected type `bool` 83 found type `&bool` 84 85error[E0308]: mismatched types 86 --> $DIR/if-no-match-bindings.rs:27:11 87 | 88LL | while &mut true {} 89 | ^^^^^^^^^ 90 | | 91 | expected bool, found &mut bool 92 | help: consider removing the borrow: `true` 93 | 94 = note: expected type `bool` 95 found type `&mut bool` 96 97error: aborting due to 8 previous errors 98 99For more information about this error, try `rustc --explain E0308`.