2021-12-17 15:12:31 -06:00
|
|
|
error: unnecessary parentheses around `for` iterator expression
|
|
|
|
--> $DIR/issue-90807-unused-paren-error.rs:7:14
|
|
|
|
|
|
|
|
|
LL | for _ in (1..loop { break 2 }) {}
|
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/issue-90807-unused-paren-error.rs:4:9
|
|
|
|
|
|
|
|
|
LL | #![deny(unused_parens)]
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - for _ in (1..loop { break 2 }) {}
|
|
|
|
LL + for _ in 1..loop { break 2 } {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2021-12-17 15:12:31 -06:00
|
|
|
|
|
|
|
error: unnecessary parentheses around `for` iterator expression
|
|
|
|
--> $DIR/issue-90807-unused-paren-error.rs:8:14
|
|
|
|
|
|
|
|
|
LL | for _ in (1..match () { () => 2 }) {}
|
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - for _ in (1..match () { () => 2 }) {}
|
|
|
|
LL + for _ in 1..match () { () => 2 } {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2021-12-17 15:12:31 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|