summaryrefslogtreecommitdiffstats
path: root/src/test/ui/did_you_mean/issue-54109-without-witness.stderr
blob: 0350890c1fde0ca0129a6b42e29301ba0a03ee53 (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
error: `and` is not a logical operator
  --> $DIR/issue-54109-without-witness.rs:13: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-without-witness.rs:15: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-without-witness.rs:24: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-without-witness.rs:26: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-without-witness.rs:34: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-without-witness.rs:42: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-without-witness.rs:50: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-without-witness.rs:58: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: aborting due to 8 previous errors