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