fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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