fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2#![deny(unused_parens)] 3 4fn main() { 5 if let Some(_) = Some(1) {} 6 //~^ ERROR unnecessary parentheses around pattern 7 8 for _x in 1..10 {} 9 //~^ ERROR unnecessary parentheses around pattern 10 11 if 2 == 1 {} 12 //~^ ERROR unnecessary parentheses around `if` condition 13 14 // reported by parser 15 for _x in 1..10 {} 16 //~^ ERROR expected one of 17 //~| ERROR unexpected parentheses surrounding 18}