]> git.lizzy.rs Git - rust.git/blob - src/test/ui/did_you_mean/issue-54109-and_instead_of_ampersands.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[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    |     --   ^^^
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:23: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:32:11
23    |
24 LL |     if (a and b) {
25    |           ^^^
26    |           |
27    |           expected one of 8 possible tokens here
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:41:11
32    |
33 LL |     if (a or b) {
34    |           ^^
35    |           |
36    |           expected one of 8 possible tokens here
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:50:13
41    |
42 LL |     while a and b {
43    |             ^^^
44    |             |
45    |             expected one of `!`, `.`, `::`, `?`, `{`, or an operator here
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:59:13
50    |
51 LL |     while a or b {
52    |             ^^
53    |             |
54    |             expected one of `!`, `.`, `::`, `?`, `{`, or an operator here
55    |             help: use `||` instead of `or` for the boolean operator
56
57 error: aborting due to 6 previous errors
58