]> git.proxmox.com Git - rustc.git/blob - src/test/ui/did_you_mean/issue-54109-and_instead_of_ampersands.stderr
35123b11133f3617fcabd084ac162dd43e10f3e8
[rustc.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 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:31: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:40: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:49: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