]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lint/unused/issue-90807-unused-paren-error.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / lint / unused / issue-90807-unused-paren-error.stderr
CommitLineData
a2a8927a
XL
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 } {}
923072b8 16 |
a2a8927a
XL
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 } {}
923072b8 28 |
a2a8927a
XL
29
30error: aborting due to 2 previous errors
31