]> git.lizzy.rs Git - rust.git/blob - tests/ui/did_you_mean/issue-54109-without-witness.stderr
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / did_you_mean / issue-54109-without-witness.stderr
1 error: `and` is not a logical operator
2   --> $DIR/issue-54109-without-witness.rs:13:15
3    |
4 LL |     let _ = a and b;
5    |               ^^^ help: use `&&` to perform logical conjunction
6    |
7    = note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
8
9 error: `and` is not a logical operator
10   --> $DIR/issue-54109-without-witness.rs:15:10
11    |
12 LL |     if a and b {
13    |          ^^^ help: use `&&` to perform logical conjunction
14    |
15    = note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
16
17 error: `or` is not a logical operator
18   --> $DIR/issue-54109-without-witness.rs:24:15
19    |
20 LL |     let _ = a or b;
21    |               ^^ help: use `||` to perform logical disjunction
22    |
23    = note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
24
25 error: `or` is not a logical operator
26   --> $DIR/issue-54109-without-witness.rs:26:10
27    |
28 LL |     if a or b {
29    |          ^^ help: use `||` to perform logical disjunction
30    |
31    = note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
32
33 error: `and` is not a logical operator
34   --> $DIR/issue-54109-without-witness.rs:34:11
35    |
36 LL |     if (a and b) {
37    |           ^^^ help: use `&&` to perform logical conjunction
38    |
39    = note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
40
41 error: `or` is not a logical operator
42   --> $DIR/issue-54109-without-witness.rs:42:11
43    |
44 LL |     if (a or b) {
45    |           ^^ help: use `||` to perform logical disjunction
46    |
47    = note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
48
49 error: `and` is not a logical operator
50   --> $DIR/issue-54109-without-witness.rs:50:13
51    |
52 LL |     while a and b {
53    |             ^^^ help: use `&&` to perform logical conjunction
54    |
55    = note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
56
57 error: `or` is not a logical operator
58   --> $DIR/issue-54109-without-witness.rs:58:13
59    |
60 LL |     while a or b {
61    |             ^^ help: use `||` to perform logical disjunction
62    |
63    = note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
64
65 error: aborting due to 8 previous errors
66