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
+4-4
Original file line number
Diff line number
Diff line change
@@ -22,19 +22,19 @@ LL | { 42 } + foo;
22
22
| |
23
23
| help: parenthesis are required to parse this as an expression: `({ 42 })`
24
24
25
-
error: ambiguous parse
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
29
| ------------------------------------------ help: parenthesis 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
33
-
error: ambiguous parse
33
+
error: expected expression, found `>`
34
34
--> $DIR/expr-as-stmt.rs:37:7
35
35
|
36
36
LL | } > 0
37
-
| ^
37
+
| ^ expected expression
38
38
help: parenthesis are required to parse this as an expression
0 commit comments