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