@@ -7,133 +7,69 @@ LL | let _ = a and b;
7
7
= note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
8
8
9
9
error: `and` is not a logical operator
10
- --> $DIR/issue-54109-and_instead_of_ampersands.rs:7:15
11
- |
12
- LL | let _ = 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: `and` is not a logical operator
18
- --> $DIR/issue-54109-and_instead_of_ampersands.rs:10:10
19
- |
20
- LL | if a and b {
21
- | ^^^ help: use `&&` to perform logical conjunction
22
- |
23
- = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
24
-
25
- error: `and` is not a logical operator
26
- --> $DIR/issue-54109-and_instead_of_ampersands.rs:10:10
10
+ --> $DIR/issue-54109-and_instead_of_ampersands.rs:9:10
27
11
|
28
12
LL | if a and b {
29
13
| ^^^ help: use `&&` to perform logical conjunction
30
14
|
31
15
= note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
32
16
33
17
error: `or` is not a logical operator
34
- --> $DIR/issue-54109-and_instead_of_ampersands.rs:22 :15
18
+ --> $DIR/issue-54109-and_instead_of_ampersands.rs:20 :15
35
19
|
36
20
LL | let _ = a or b;
37
21
| ^^ help: use `||` to perform logical disjunction
38
22
|
39
23
= note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
40
24
41
25
error: `or` is not a logical operator
42
- --> $DIR/issue-54109-and_instead_of_ampersands.rs:22:15
43
- |
44
- LL | let _ = 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: `or` is not a logical operator
50
- --> $DIR/issue-54109-and_instead_of_ampersands.rs:25:10
51
- |
52
- LL | if a or b {
53
- | ^^ help: use `||` to perform logical disjunction
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-and_instead_of_ampersands.rs:25:10
26
+ --> $DIR/issue-54109-and_instead_of_ampersands.rs:22:10
59
27
|
60
28
LL | if a or b {
61
29
| ^^ help: use `||` to perform logical disjunction
62
30
|
63
31
= note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
64
32
65
33
error: `and` is not a logical operator
66
- --> $DIR/issue-54109-and_instead_of_ampersands.rs:34 :11
34
+ --> $DIR/issue-54109-and_instead_of_ampersands.rs:30 :11
67
35
|
68
36
LL | if (a and b) {
69
37
| ^^^ help: use `&&` to perform logical conjunction
70
38
|
71
39
= note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
72
40
73
- error: `and` is not a logical operator
74
- --> $DIR/issue-54109-and_instead_of_ampersands.rs:34:11
75
- |
76
- LL | if (a and b) {
77
- | ^^^ help: use `&&` to perform logical conjunction
78
- |
79
- = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
80
-
81
- error: `or` is not a logical operator
82
- --> $DIR/issue-54109-and_instead_of_ampersands.rs:43:11
83
- |
84
- LL | if (a or b) {
85
- | ^^ help: use `||` to perform logical disjunction
86
- |
87
- = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
88
-
89
41
error: `or` is not a logical operator
90
- --> $DIR/issue-54109-and_instead_of_ampersands.rs:43 :11
42
+ --> $DIR/issue-54109-and_instead_of_ampersands.rs:38 :11
91
43
|
92
44
LL | if (a or b) {
93
45
| ^^ help: use `||` to perform logical disjunction
94
46
|
95
47
= note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
96
48
97
49
error: `and` is not a logical operator
98
- --> $DIR/issue-54109-and_instead_of_ampersands.rs:52 :13
50
+ --> $DIR/issue-54109-and_instead_of_ampersands.rs:46 :13
99
51
|
100
52
LL | while a and b {
101
53
| ^^^ help: use `&&` to perform logical conjunction
102
54
|
103
55
= note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
104
56
105
- error: `and` is not a logical operator
106
- --> $DIR/issue-54109-and_instead_of_ampersands.rs:52:13
107
- |
108
- LL | while a and b {
109
- | ^^^ help: use `&&` to perform logical conjunction
110
- |
111
- = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
112
-
113
- error: `or` is not a logical operator
114
- --> $DIR/issue-54109-and_instead_of_ampersands.rs:61:13
115
- |
116
- LL | while a or b {
117
- | ^^ help: use `||` to perform logical disjunction
118
- |
119
- = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
120
-
121
57
error: `or` is not a logical operator
122
- --> $DIR/issue-54109-and_instead_of_ampersands.rs:61 :13
58
+ --> $DIR/issue-54109-and_instead_of_ampersands.rs:54 :13
123
59
|
124
60
LL | while a or b {
125
61
| ^^ help: use `||` to perform logical disjunction
126
62
|
127
63
= note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
128
64
129
65
error[E0308]: mismatched types
130
- --> $DIR/issue-54109-and_instead_of_ampersands.rs:15 :33
66
+ --> $DIR/issue-54109-and_instead_of_ampersands.rs:13 :33
131
67
|
132
68
LL | let _recovery_witness: () = 0;
133
69
| -- ^ expected `()`, found integer
134
70
| |
135
71
| expected due to this
136
72
137
- error: aborting due to 17 previous errors
73
+ error: aborting due to 9 previous errors
138
74
139
75
For more information about this error, try `rustc --explain E0308`.
0 commit comments