1error: `and` is not a logical operator 2 --> $DIR/issue-54109-and_instead_of_ampersands.rs:7:15 3 | 4LL | 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 9error: `and` is not a logical operator 10 --> $DIR/issue-54109-and_instead_of_ampersands.rs:9:10 11 | 12LL | 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 17error: `or` is not a logical operator 18 --> $DIR/issue-54109-and_instead_of_ampersands.rs:20:15 19 | 20LL | 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 25error: `or` is not a logical operator 26 --> $DIR/issue-54109-and_instead_of_ampersands.rs:22:10 27 | 28LL | 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 33error: `and` is not a logical operator 34 --> $DIR/issue-54109-and_instead_of_ampersands.rs:30:11 35 | 36LL | 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 41error: `or` is not a logical operator 42 --> $DIR/issue-54109-and_instead_of_ampersands.rs:38:11 43 | 44LL | 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 49error: `and` is not a logical operator 50 --> $DIR/issue-54109-and_instead_of_ampersands.rs:46:13 51 | 52LL | 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 57error: `or` is not a logical operator 58 --> $DIR/issue-54109-and_instead_of_ampersands.rs:54:13 59 | 60LL | 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 65error[E0308]: mismatched types 66 --> $DIR/issue-54109-and_instead_of_ampersands.rs:13:33 67 | 68LL | let _recovery_witness: () = 0; 69 | -- ^ expected `()`, found integer 70 | | 71 | expected due to this 72 73error: aborting due to 9 previous errors 74 75For more information about this error, try `rustc --explain E0308`. 76