| help: parenthesis are required to parse this as an expression: `({2})`
error: expected expression, found `+`
--> $DIR/expr-as-stmt.rs:12:9
|
LL | {2} + 2
| --- ^ expected expression
| |
| help: parenthesis are required to parse this as an expression: `({2})`
error: expected expression, found `+`
--> $DIR/expr-as-stmt.rs:18:12
|
LL | { 42 } + foo;
| ------ ^ expected expression
| |
| help: parenthesis are required to parse this as an expression: `({ 42 })`
error: ambiguous parse
--> $DIR/expr-as-stmt.rs:30:5
|
LL | if let Some(x) = a { true } else { false }
| ------------------------------------------ help: parenthesis are required to parse this as an expression: `(if let Some(x) = a { true } else { false })`