summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/issue-103435-extra-parentheses.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/lint/issue-103435-extra-parentheses.rs')
-rw-r--r--src/test/ui/lint/issue-103435-extra-parentheses.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/test/ui/lint/issue-103435-extra-parentheses.rs b/src/test/ui/lint/issue-103435-extra-parentheses.rs
deleted file mode 100644
index 8261610cf..000000000
--- a/src/test/ui/lint/issue-103435-extra-parentheses.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-// run-rustfix
-#![deny(unused_parens)]
-
-fn main() {
- if let(Some(_))= Some(1) {}
- //~^ ERROR unnecessary parentheses around pattern
-
- for(_x)in 1..10 {}
- //~^ ERROR unnecessary parentheses around pattern
-
- if(2 == 1){}
- //~^ ERROR unnecessary parentheses around `if` condition
-
- // reported by parser
- for(_x in 1..10){}
- //~^ ERROR expected one of
- //~| ERROR unexpected parentheses surrounding
-}