@@ -2,63 +2,63 @@ error: `and` is not a logical operator
2
2
--> $DIR/issue-54109-and_instead_of_ampersands.rs:7:15
3
3
|
4
4
LL | let _ = a and b;
5
- | ^^^ help: instead of `and`, use `&&` to perform logical conjunction: `&&`
5
+ | ^^^ help: use `&&` to perform logical conjunction
6
6
|
7
7
= note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
8
8
9
9
error: `and` is not a logical operator
10
10
--> $DIR/issue-54109-and_instead_of_ampersands.rs:9:10
11
11
|
12
12
LL | if a and b {
13
- | ^^^ help: instead of `and`, use `&&` to perform logical conjunction: `&&`
13
+ | ^^^ help: use `&&` to perform logical conjunction
14
14
|
15
15
= note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
16
16
17
17
error: `or` is not a logical operator
18
18
--> $DIR/issue-54109-and_instead_of_ampersands.rs:20:15
19
19
|
20
20
LL | let _ = a or b;
21
- | ^^ help: instead of `or`, use `||` to perform logical disjunction: `||`
21
+ | ^^ help: use `||` to perform logical disjunction
22
22
|
23
23
= note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
24
24
25
25
error: `or` is not a logical operator
26
26
--> $DIR/issue-54109-and_instead_of_ampersands.rs:22:10
27
27
|
28
28
LL | if a or b {
29
- | ^^ help: instead of `or`, use `||` to perform logical disjunction: `||`
29
+ | ^^ help: use `||` to perform logical disjunction
30
30
|
31
31
= note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
32
32
33
33
error: `and` is not a logical operator
34
34
--> $DIR/issue-54109-and_instead_of_ampersands.rs:30:11
35
35
|
36
36
LL | if (a and b) {
37
- | ^^^ help: instead of `and`, use `&&` to perform logical conjunction: `&&`
37
+ | ^^^ help: use `&&` to perform logical conjunction
38
38
|
39
39
= note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
40
40
41
41
error: `or` is not a logical operator
42
42
--> $DIR/issue-54109-and_instead_of_ampersands.rs:38:11
43
43
|
44
44
LL | if (a or b) {
45
- | ^^ help: instead of `or`, use `||` to perform logical disjunction: `||`
45
+ | ^^ help: use `||` to perform logical disjunction
46
46
|
47
47
= note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
48
48
49
49
error: `and` is not a logical operator
50
50
--> $DIR/issue-54109-and_instead_of_ampersands.rs:46:13
51
51
|
52
52
LL | while a and b {
53
- | ^^^ help: instead of `and`, use `&&` to perform logical conjunction: `&&`
53
+ | ^^^ help: use `&&` to perform logical conjunction
54
54
|
55
55
= note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
56
56
57
57
error: `or` is not a logical operator
58
58
--> $DIR/issue-54109-and_instead_of_ampersands.rs:54:13
59
59
|
60
60
LL | while a or b {
61
- | ^^ help: instead of `or`, use `||` to perform logical disjunction: `||`
61
+ | ^^ help: use `||` to perform logical disjunction
62
62
|
63
63
= note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
64
64
0 commit comments