@@ -2,15 +2,15 @@ error: expected `{`, found `and`
22 --> $DIR/issue-54109-and_instead_of_ampersands.rs:14:10
33 |
44LL | if a and b {
5- | -- ^^^ help: use `&&` instead of `and` for the boolean operator: `&&`
5+ | -- ^^^ help: use `&&` instead of `and` for the boolean operator
66 | |
77 | this `if` statement has a condition, but no block
88
99error: expected `{`, found `or`
1010 --> $DIR/issue-54109-and_instead_of_ampersands.rs:23:10
1111 |
1212LL | if a or b {
13- | -- ^^ help: use `||` instead of `or` for the boolean operator: `||`
13+ | -- ^^ help: use `||` instead of `or` for the boolean operator
1414 | |
1515 | this `if` statement has a condition, but no block
1616
@@ -21,7 +21,7 @@ LL | if (a and b) {
2121 | ^^^
2222 | |
2323 | 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
2525
2626error: expected one of `!`, `)`, `,`, `.`, `::`, `?`, `{`, or an operator, found `or`
2727 --> $DIR/issue-54109-and_instead_of_ampersands.rs:41:11
@@ -30,7 +30,7 @@ LL | if (a or b) {
3030 | ^^
3131 | |
3232 | 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
3434
3535error: expected one of `!`, `.`, `::`, `?`, `{`, or an operator, found `and`
3636 --> $DIR/issue-54109-and_instead_of_ampersands.rs:50:13
@@ -39,7 +39,7 @@ LL | while a and b {
3939 | ^^^
4040 | |
4141 | 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
4343
4444error: expected one of `!`, `.`, `::`, `?`, `{`, or an operator, found `or`
4545 --> $DIR/issue-54109-and_instead_of_ampersands.rs:59:13
@@ -48,7 +48,7 @@ LL | while a or b {
4848 | ^^
4949 | |
5050 | 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
5252
5353error: aborting due to 6 previous errors
5454
0 commit comments