fork/rust

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

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

master
1.4 KiB61 linesraw
1error: expected one of `)`, `,`, `@`, or `|`, found keyword `in`
2  --> $DIR/issue-103435-extra-parentheses.rs:15:12
3   |
4LL |     for(_x in 1..10){}
5   |            ^^ expected one of `)`, `,`, `@`, or `|`
6
7error: unexpected parentheses surrounding `for` loop head
8  --> $DIR/issue-103435-extra-parentheses.rs:15:8
9   |
10LL |     for(_x in 1..10){}
11   |        ^           ^
12   |
13help: remove parentheses in `for` loop
14   |
15LL -     for(_x in 1..10){}
16LL +     for _x in 1..10 {}
17   |
18
19error: unnecessary parentheses around pattern
20  --> $DIR/issue-103435-extra-parentheses.rs:5:11
21   |
22LL |     if let(Some(_))= Some(1) {}
23   |           ^       ^
24   |
25note: the lint level is defined here
26  --> $DIR/issue-103435-extra-parentheses.rs:2:9
27   |
28LL | #![deny(unused_parens)]
29   |         ^^^^^^^^^^^^^
30help: remove these parentheses
31   |
32LL -     if let(Some(_))= Some(1) {}
33LL +     if let Some(_) = Some(1) {}
34   |
35
36error: unnecessary parentheses around pattern
37  --> $DIR/issue-103435-extra-parentheses.rs:8:8
38   |
39LL |     for(_x)in 1..10 {}
40   |        ^  ^
41   |
42help: remove these parentheses
43   |
44LL -     for(_x)in 1..10 {}
45LL +     for _x in 1..10 {}
46   |
47
48error: unnecessary parentheses around `if` condition
49  --> $DIR/issue-103435-extra-parentheses.rs:11:7
50   |
51LL |     if(2 == 1){}
52   |       ^      ^
53   |
54help: remove these parentheses
55   |
56LL -     if(2 == 1){}
57LL +     if 2 == 1 {}
58   |
59
60error: aborting due to 5 previous errors
61