rust/tests/ui/lint/unused/issue-90807-unused-paren.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
197 B
Rust
Raw Normal View History

// check-pass
// Make sure unused parens lint doesn't emit a false positive.
// See https://github.com/rust-lang/rust/issues/90807
#![deny(unused_parens)]
fn main() {
for _ in (1..{ 2 }) {}
}