]> git.lizzy.rs Git - rust.git/blob - src/test/ui/did_you_mean/issue-54109-and_instead_of_ampersands.stderr
74ebb1e757c96158f7285a4d995da52221f07dd7
[rust.git] / src / test / ui / did_you_mean / issue-54109-and_instead_of_ampersands.stderr
1 error: expected `{`, found `and`
2   --> $DIR/issue-54109-and_instead_of_ampersands.rs:14:10
3    |
4 LL |     if a and b {
5    |     --   ^^^ help: use `&&` instead of `and` for the boolean operator: `&&`
6    |     |
7    |     this `if` statement has a condition, but no block
8
9 error: expected `{`, found `or`
10   --> $DIR/issue-54109-and_instead_of_ampersands.rs:23:10
11    |
12 LL |     if a or b {
13    |     --   ^^ help: use `||` instead of `or` for the boolean operator: `||`
14    |     |
15    |     this `if` statement has a condition, but no block
16
17 error: expected one of `!`, `)`, `,`, `.`, `::`, `?`, `{`, or an operator, found `and`
18   --> $DIR/issue-54109-and_instead_of_ampersands.rs:32:11
19    |
20 LL |     if (a and b) {
21    |           ^^^
22    |           |
23    |           expected one of 8 possible tokens here
24    |           help: use `&&` instead of `and` for the boolean operator: `&&`
25
26 error: expected one of `!`, `)`, `,`, `.`, `::`, `?`, `{`, or an operator, found `or`
27   --> $DIR/issue-54109-and_instead_of_ampersands.rs:41:11
28    |
29 LL |     if (a or b) {
30    |           ^^
31    |           |
32    |           expected one of 8 possible tokens here
33    |           help: use `||` instead of `or` for the boolean operator: `||`
34
35 error: aborting due to 4 previous errors