fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
871 B31 linesraw
1error: unnecessary parentheses around `for` iterator expression
2  --> $DIR/issue-90807-unused-paren-error.rs:7:14
3   |
4LL |     for _ in (1..loop { break 2 }) {}
5   |              ^                   ^
6   |
7note: the lint level is defined here
8  --> $DIR/issue-90807-unused-paren-error.rs:4:9
9   |
10LL | #![deny(unused_parens)]
11   |         ^^^^^^^^^^^^^
12help: remove these parentheses
13   |
14LL -     for _ in (1..loop { break 2 }) {}
15LL +     for _ in 1..loop { break 2 } {}
16   |
17
18error: unnecessary parentheses around `for` iterator expression
19  --> $DIR/issue-90807-unused-paren-error.rs:8:14
20   |
21LL |     for _ in (1..match () { () => 2 }) {}
22   |              ^                       ^
23   |
24help: remove these parentheses
25   |
26LL -     for _ in (1..match () { () => 2 }) {}
27LL +     for _ in 1..match () { () => 2 } {}
28   |
29
30error: aborting due to 2 previous errors
31