2019-04-24 22:48:26 -05:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/if-no-match-bindings.rs:18:8
|
|
|
|
|
|
|
|
|
LL | if b_ref() {}
|
2021-06-28 13:22:47 -05:00
|
|
|
| ^^^^^^^ expected `bool`, found `&bool`
|
|
|
|
|
|
|
|
|
help: consider dereferencing the borrow
|
|
|
|
|
|
|
|
|
LL | if *b_ref() {}
|
2021-06-21 21:07:19 -05:00
|
|
|
| +
|
2019-04-24 22:48:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/if-no-match-bindings.rs:19:8
|
|
|
|
|
|
|
|
|
LL | if b_mut_ref() {}
|
2021-06-28 13:22:47 -05:00
|
|
|
| ^^^^^^^^^^^ expected `bool`, found `&mut bool`
|
|
|
|
|
|
|
|
|
help: consider dereferencing the borrow
|
|
|
|
|
|
|
|
|
LL | if *b_mut_ref() {}
|
2021-06-21 21:07:19 -05:00
|
|
|
| +
|
2019-04-24 22:48:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/if-no-match-bindings.rs:20:8
|
|
|
|
|
|
|
|
|
LL | if &true {}
|
2021-06-28 13:22:47 -05:00
|
|
|
| ^^^^^ expected `bool`, found `&bool`
|
|
|
|
|
|
|
|
|
help: consider removing the borrow
|
|
|
|
|
|
2021-06-21 21:07:19 -05:00
|
|
|
LL - if &true {}
|
|
|
|
LL + if true {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-04-24 22:48:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/if-no-match-bindings.rs:21:8
|
|
|
|
|
|
|
|
|
LL | if &mut true {}
|
2021-06-28 13:22:47 -05:00
|
|
|
| ^^^^^^^^^ expected `bool`, found `&mut bool`
|
|
|
|
|
|
|
|
|
help: consider removing the borrow
|
|
|
|
|
|
2021-06-21 21:07:19 -05:00
|
|
|
LL - if &mut true {}
|
|
|
|
LL + if true {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-04-24 22:48:26 -05:00
|
|
|
|
2019-06-20 07:13:28 -05:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/if-no-match-bindings.rs:24:11
|
|
|
|
|
|
|
|
|
LL | while b_ref() {}
|
2021-06-28 13:22:47 -05:00
|
|
|
| ^^^^^^^ expected `bool`, found `&bool`
|
|
|
|
|
|
|
|
|
help: consider dereferencing the borrow
|
|
|
|
|
|
|
|
|
LL | while *b_ref() {}
|
2021-06-21 21:07:19 -05:00
|
|
|
| +
|
2019-06-20 07:13:28 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/if-no-match-bindings.rs:25:11
|
|
|
|
|
|
|
|
|
LL | while b_mut_ref() {}
|
2021-06-28 13:22:47 -05:00
|
|
|
| ^^^^^^^^^^^ expected `bool`, found `&mut bool`
|
|
|
|
|
|
|
|
|
help: consider dereferencing the borrow
|
|
|
|
|
|
|
|
|
LL | while *b_mut_ref() {}
|
2021-06-21 21:07:19 -05:00
|
|
|
| +
|
2019-06-20 07:13:28 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/if-no-match-bindings.rs:26:11
|
|
|
|
|
|
2019-10-05 23:03:53 -05:00
|
|
|
LL | while &true {}
|
2021-06-28 13:22:47 -05:00
|
|
|
| ^^^^^ expected `bool`, found `&bool`
|
|
|
|
|
|
|
|
|
help: consider removing the borrow
|
|
|
|
|
|
2021-06-21 21:07:19 -05:00
|
|
|
LL - while &true {}
|
|
|
|
LL + while true {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-06-20 07:13:28 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/if-no-match-bindings.rs:27:11
|
|
|
|
|
|
2019-10-05 23:03:53 -05:00
|
|
|
LL | while &mut true {}
|
2021-06-28 13:22:47 -05:00
|
|
|
| ^^^^^^^^^ expected `bool`, found `&mut bool`
|
|
|
|
|
|
|
|
|
help: consider removing the borrow
|
|
|
|
|
|
2021-06-21 21:07:19 -05:00
|
|
|
LL - while &mut true {}
|
|
|
|
LL + while true {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-06-20 07:13:28 -05:00
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
2019-04-24 22:48:26 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|