You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/parser/expr-as-stmt.stderr
+6-6
Original file line number
Diff line number
Diff line change
@@ -4,29 +4,29 @@ error: expected expression, found `+`
4
4
LL | {2} + {2}
5
5
| --- ^ expected expression
6
6
| |
7
-
| help: parenthesis are required to parse this as an expression: `({2})`
7
+
| help: parentheses are required to parse this as an expression: `({2})`
8
8
9
9
error: expected expression, found `+`
10
10
--> $DIR/expr-as-stmt.rs:12:9
11
11
|
12
12
LL | {2} + 2
13
13
| --- ^ expected expression
14
14
| |
15
-
| help: parenthesis are required to parse this as an expression: `({2})`
15
+
| help: parentheses are required to parse this as an expression: `({2})`
16
16
17
17
error: expected expression, found `+`
18
18
--> $DIR/expr-as-stmt.rs:18:12
19
19
|
20
20
LL | { 42 } + foo;
21
21
| ------ ^ expected expression
22
22
| |
23
-
| help: parenthesis are required to parse this as an expression: `({ 42 })`
23
+
| help: parentheses are required to parse this as an expression: `({ 42 })`
24
24
25
25
error: expected expression, found `&&`
26
26
--> $DIR/expr-as-stmt.rs:30:5
27
27
|
28
28
LL | if let Some(x) = a { true } else { false }
29
-
| ------------------------------------------ help: parenthesis are required to parse this as an expression: `(if let Some(x) = a { true } else { false })`
29
+
| ------------------------------------------ help: parentheses are required to parse this as an expression: `(if let Some(x) = a { true } else { false })`
30
30
LL | &&
31
31
| ^^ expected expression
32
32
@@ -35,7 +35,7 @@ error: expected expression, found `>`
35
35
|
36
36
LL | } > 0
37
37
| ^ expected expression
38
-
help: parenthesis are required to parse this as an expression
38
+
help: parentheses are required to parse this as an expression
39
39
|
40
40
LL | (match x {
41
41
LL | _ => 1,
@@ -84,7 +84,7 @@ error[E0614]: type `{integer}` cannot be dereferenced
84
84
LL | { 3 } * 3
85
85
| ----- ^^^
86
86
| |
87
-
| help: parenthesis are required to parse this as an expression: `({ 3 })`
87
+
| help: parentheses are required to parse this as an expression: `({ 3 })`
0 commit comments