summaryrefslogtreecommitdiffstats
path: root/src/test/ui/did_you_mean/issue-54109-and_instead_of_ampersands.stderr
blob: 528c62f501e0d1bf65bcad255050b235f1255559 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
error: `and` is not a logical operator
  --> $DIR/issue-54109-and_instead_of_ampersands.rs:7:15
   |
LL |     let _ = a and b;
   |               ^^^ help: use `&&` to perform logical conjunction
   |
   = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators

error: `and` is not a logical operator
  --> $DIR/issue-54109-and_instead_of_ampersands.rs:9:10
   |
LL |     if a and b {
   |          ^^^ help: use `&&` to perform logical conjunction
   |
   = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators

error: `or` is not a logical operator
  --> $DIR/issue-54109-and_instead_of_ampersands.rs:20:15
   |
LL |     let _ = a or b;
   |               ^^ help: use `||` to perform logical disjunction
   |
   = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators

error: `or` is not a logical operator
  --> $DIR/issue-54109-and_instead_of_ampersands.rs:22:10
   |
LL |     if a or b {
   |          ^^ help: use `||` to perform logical disjunction
   |
   = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators

error: `and` is not a logical operator
  --> $DIR/issue-54109-and_instead_of_ampersands.rs:30:11
   |
LL |     if (a and b) {
   |           ^^^ help: use `&&` to perform logical conjunction
   |
   = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators

error: `or` is not a logical operator
  --> $DIR/issue-54109-and_instead_of_ampersands.rs:38:11
   |
LL |     if (a or b) {
   |           ^^ help: use `||` to perform logical disjunction
   |
   = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators

error: `and` is not a logical operator
  --> $DIR/issue-54109-and_instead_of_ampersands.rs:46:13
   |
LL |     while a and b {
   |             ^^^ help: use `&&` to perform logical conjunction
   |
   = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators

error: `or` is not a logical operator
  --> $DIR/issue-54109-and_instead_of_ampersands.rs:54:13
   |
LL |     while a or b {
   |             ^^ help: use `||` to perform logical disjunction
   |
   = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators

error[E0308]: mismatched types
  --> $DIR/issue-54109-and_instead_of_ampersands.rs:13:33
   |
LL |     let _recovery_witness: () = 0;
   |                            --   ^ expected `()`, found integer
   |                            |
   |                            expected due to this

error: aborting due to 9 previous errors

For more information about this error, try `rustc --explain E0308`.