Grouped expressions
GroupedExpression -> `(` Expression `)`
A parenthesized expression wraps a single expression, evaluating to that expression. The syntax for a parenthesized expression is a (, then an expression, called the enclosed operand, and then a ).
Parenthesized expressions evaluate to the value of the enclosed operand.
A parenthesized expression is a place expression if the enclosed operand is a place expression, and is a value expression if the enclosed operand is a value expression.
Parentheses can be used to explicitly modify the precedence order of subexpressions within an expression.
An example of a parenthesized expression:
let x: i32 = 2 + 3 * 4; // not parenthesized
let y: i32 = * 4; // parenthesized
assert_eq!;
assert_eq!;
An example of a necessary use of parentheses is when calling a function pointer that is a member of a struct:
#
#
# let a = A;
#
assert_eq!;
assert_eq!;