fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0308]: mismatched types 2 --> $DIR/if-no-match-bindings.rs:18:8 3 | 4LL | if b_ref() {} 5 | ^^^^^^^ expected bool, found &bool 6 | 7 = note: expected type `bool` 8 found type `&bool` 9 10error[E0308]: mismatched types 11 --> $DIR/if-no-match-bindings.rs:19:8 12 | 13LL | if b_mut_ref() {} 14 | ^^^^^^^^^^^ expected bool, found &mut bool 15 | 16 = note: expected type `bool` 17 found type `&mut bool` 18 19error[E0308]: mismatched types 20 --> $DIR/if-no-match-bindings.rs:20:8 21 | 22LL | if &true {} 23 | ^^^^^ expected bool, found &bool 24 | 25 = note: expected type `bool` 26 found type `&bool` 27 28error[E0308]: mismatched types 29 --> $DIR/if-no-match-bindings.rs:21:8 30 | 31LL | if &mut true {} 32 | ^^^^^^^^^ expected bool, found &mut bool 33 | 34 = note: expected type `bool` 35 found type `&mut bool` 36 37error[E0308]: mismatched types 38 --> $DIR/if-no-match-bindings.rs:24:11 39 | 40LL | while b_ref() {} 41 | ^^^^^^^ expected bool, found &bool 42 | 43 = note: expected type `bool` 44 found type `&bool` 45 46error[E0308]: mismatched types 47 --> $DIR/if-no-match-bindings.rs:25:11 48 | 49LL | while b_mut_ref() {} 50 | ^^^^^^^^^^^ expected bool, found &mut bool 51 | 52 = note: expected type `bool` 53 found type `&mut bool` 54 55error[E0308]: mismatched types 56 --> $DIR/if-no-match-bindings.rs:26:11 57 | 58LL | while &true {} 59 | ^^^^^ expected bool, found &bool 60 | 61 = note: expected type `bool` 62 found type `&bool` 63 64error[E0308]: mismatched types 65 --> $DIR/if-no-match-bindings.rs:27:11 66 | 67LL | while &mut true {} 68 | ^^^^^^^^^ expected bool, found &mut bool 69 | 70 = note: expected type `bool` 71 found type `&mut bool` 72 73error: aborting due to 8 previous errors 74 75For more information about this error, try `rustc --explain E0308`.