3 // This test is to check if suggestions can be applied automatically.
5 #![allow(dead_code, unused_parens)]
13 let _ = a && b; //~ ERROR `and` is not a logical operator
15 if a && b { //~ ERROR `and` is not a logical operator
24 let _ = a || b; //~ ERROR `or` is not a logical operator
26 if a || b { //~ ERROR `or` is not a logical operator
34 if (a && b) { //~ ERROR `and` is not a logical operator
42 if (a || b) { //~ ERROR `or` is not a logical operator
50 while a && b { //~ ERROR `and` is not a logical operator
58 while a || b { //~ ERROR `or` is not a logical operator