3 > **<sup>Syntax</sup>**\
4 > _GroupedExpression_ :\
5 > `(` [_InnerAttribute_]<sup>\*</sup> [_Expression_] `)`
7 A *parenthesized expression* wraps a single expression, evaluating to that expression.
8 The syntax for a parenthesized expression is a `(`, then an expression, called the *enclosed operand*, and then a `)`.
10 Parenthesized expressions evaluate to the value of the enclosed operand.
11 Unlike other expressions, parenthesized expressions are both [place expressions and value expressions][place].
12 When the enclosed operand is a place expression, it is a place expression and when the enclosed operand is a value expression, it is a value expression.
14 Parentheses can be used to explicitly modify the precedence order of subexpressions within an expression.
16 An example of a parenthesized expression:
19 let x: i32 = 2 + 3 * 4;
20 let y: i32 = (2 + 3) * 4;
25 An example of a necessary use of parentheses is when calling a function pointer that is a member of a struct:
29 # f: fn() -> &'static str
32 # fn f(&self) -> &'static str {
36 # let a = A{f: || "The field f"};
38 assert_eq!( a.f (), "The method f");
39 assert_eq!((a.f)(), "The field f");
42 ## Group expression attributes
44 [Inner attributes] are allowed directly after the opening parenthesis of a group expression in the same expression contexts as [attributes on block expressions].
46 [Inner attributes]: ../attributes.md
47 [_Expression_]: ../expressions.md
48 [_InnerAttribute_]: ../attributes.md
49 [attributes on block expressions]: block-expr.md#attributes-on-block-expressions
50 [place]: ../expressions.md#place-expressions-and-value-expressions