1 // Make sure unused parens lint emit is emitted for loop and match.
2 // See https://github.com/rust-lang/rust/issues/90807
3 // and https://github.com/rust-lang/rust/pull/91956#discussion_r771647953
4 #![deny(unused_parens)]
7 for _ in (1..loop { break 2 }) {} //~ERROR
8 for _ in (1..match () { () => 2 }) {} //~ERROR