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