@@ -7,133 +7,69 @@ LL | let _ = a and b;
77 = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
88
99error: `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
2711 |
2812LL | if a and b {
2913 | ^^^ help: use `&&` to perform logical conjunction
3014 |
3115 = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
3216
3317error: `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
3519 |
3620LL | let _ = a or b;
3721 | ^^ help: use `||` to perform logical disjunction
3822 |
3923 = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
4024
4125error: `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
5927 |
6028LL | if a or b {
6129 | ^^ help: use `||` to perform logical disjunction
6230 |
6331 = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
6432
6533error: `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
6735 |
6836LL | if (a and b) {
6937 | ^^^ help: use `&&` to perform logical conjunction
7038 |
7139 = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
7240
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-
8941error: `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
9143 |
9244LL | if (a or b) {
9345 | ^^ help: use `||` to perform logical disjunction
9446 |
9547 = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
9648
9749error: `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
9951 |
10052LL | while a and b {
10153 | ^^^ help: use `&&` to perform logical conjunction
10254 |
10355 = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
10456
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-
12157error: `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
12359 |
12460LL | while a or b {
12561 | ^^ help: use `||` to perform logical disjunction
12662 |
12763 = note: unlike in e.g., python and PHP, `&&` and `||` are used for logical operators
12864
12965error[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
13167 |
13268LL | let _recovery_witness: () = 0;
13369 | -- ^ expected `()`, found integer
13470 | |
13571 | expected due to this
13672
137- error: aborting due to 17 previous errors
73+ error: aborting due to 9 previous errors
13874
13975For more information about this error, try `rustc --explain E0308`.
0 commit comments