]> git.lizzy.rs Git - rust.git/blob - src/test/ui/did_you_mean/issue-54109-and_instead_of_ampersands.stderr
f230395f7a51b5362288d2f5345617fa22afa3ce
[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:4:10
3    |
4 LL |     if a and b {
5    |     --   ^^^
6    |     |    |
7    |     |    expected `{`
8    |     |    help: use `&&` instead of `and` for the boolean operator
9    |     this `if` statement has a condition, but no block
10
11 error: expected `{`, found `or`
12   --> $DIR/issue-54109-and_instead_of_ampersands.rs:13:10
13    |
14 LL |     if a or b {
15    |     --   ^^
16    |     |    |
17    |     |    expected `{`
18    |     |    help: use `||` instead of `or` for the boolean operator
19    |     this `if` statement has a condition, but no block
20
21 error: expected one of `!`, `)`, `,`, `.`, `::`, `?`, `{`, or an operator, found `and`
22   --> $DIR/issue-54109-and_instead_of_ampersands.rs:22:11
23    |
24 LL |     if (a and b) {
25    |           ^^^
26    |           |
27    |           expected one of 8 possible tokens
28    |           help: use `&&` instead of `and` for the boolean operator
29
30 error: expected one of `!`, `)`, `,`, `.`, `::`, `?`, `{`, or an operator, found `or`
31   --> $DIR/issue-54109-and_instead_of_ampersands.rs:31:11
32    |
33 LL |     if (a or b) {
34    |           ^^
35    |           |
36    |           expected one of 8 possible tokens
37    |           help: use `||` instead of `or` for the boolean operator
38
39 error: expected one of `!`, `.`, `::`, `?`, `{`, or an operator, found `and`
40   --> $DIR/issue-54109-and_instead_of_ampersands.rs:40:13
41    |
42 LL |     while a and b {
43    |             ^^^
44    |             |
45    |             expected one of `!`, `.`, `::`, `?`, `{`, or an operator
46    |             help: use `&&` instead of `and` for the boolean operator
47
48 error: expected one of `!`, `.`, `::`, `?`, `{`, or an operator, found `or`
49   --> $DIR/issue-54109-and_instead_of_ampersands.rs:49:13
50    |
51 LL |     while a or b {
52    |             ^^
53    |             |
54    |             expected one of `!`, `.`, `::`, `?`, `{`, or an operator
55    |             help: use `||` instead of `or` for the boolean operator
56
57 error: aborting due to 6 previous errors
58