@@ -2,15 +2,15 @@ error: expected `{`, found `and`
2
2
--> $DIR/issue-54109-and_instead_of_ampersands.rs:14:10
3
3
|
4
4
LL | if a and b {
5
- | -- ^^^ help: use `&&` instead of `and` for the boolean operator: `&&`
5
+ | -- ^^^ help: use `&&` instead of `and` for the boolean operator
6
6
| |
7
7
| this `if` statement has a condition, but no block
8
8
9
9
error: expected `{`, found `or`
10
10
--> $DIR/issue-54109-and_instead_of_ampersands.rs:23:10
11
11
|
12
12
LL | if a or b {
13
- | -- ^^ help: use `||` instead of `or` for the boolean operator: `||`
13
+ | -- ^^ help: use `||` instead of `or` for the boolean operator
14
14
| |
15
15
| this `if` statement has a condition, but no block
16
16
@@ -21,7 +21,7 @@ LL | if (a and b) {
21
21
| ^^^
22
22
| |
23
23
| expected one of 8 possible tokens here
24
- | help: use `&&` instead of `and` for the boolean operator: `&&`
24
+ | help: use `&&` instead of `and` for the boolean operator
25
25
26
26
error: expected one of `!`, `)`, `,`, `.`, `::`, `?`, `{`, or an operator, found `or`
27
27
--> $DIR/issue-54109-and_instead_of_ampersands.rs:41:11
@@ -30,7 +30,7 @@ LL | if (a or b) {
30
30
| ^^
31
31
| |
32
32
| expected one of 8 possible tokens here
33
- | help: use `||` instead of `or` for the boolean operator: `||`
33
+ | help: use `||` instead of `or` for the boolean operator
34
34
35
35
error: expected one of `!`, `.`, `::`, `?`, `{`, or an operator, found `and`
36
36
--> $DIR/issue-54109-and_instead_of_ampersands.rs:50:13
@@ -39,7 +39,7 @@ LL | while a and b {
39
39
| ^^^
40
40
| |
41
41
| expected one of `!`, `.`, `::`, `?`, `{`, or an operator here
42
- | help: use `&&` instead of `and` for the boolean operator: `&&`
42
+ | help: use `&&` instead of `and` for the boolean operator
43
43
44
44
error: expected one of `!`, `.`, `::`, `?`, `{`, or an operator, found `or`
45
45
--> $DIR/issue-54109-and_instead_of_ampersands.rs:59:13
@@ -48,7 +48,7 @@ LL | while a or b {
48
48
| ^^
49
49
| |
50
50
| expected one of `!`, `.`, `::`, `?`, `{`, or an operator here
51
- | help: use `||` instead of `or` for the boolean operator: `||`
51
+ | help: use `||` instead of `or` for the boolean operator
52
52
53
53
error: aborting due to 6 previous errors
54
54
0 commit comments