Skip to content

Commit e810f63

Browse files
committed
More precise wording around temporaries
1 parent 6c4360e commit e810f63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/expressions/block-expr.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ Here the resulting future will be `Send` if `Bar` is send, since `x` is defined
134134

135135
Note that for values of types that implement `Drop`, there is an implicit use of the value at the end of its lifetime in order to run the destructor.
136136

137-
Besides named variables, temporary values also count. For example in `foo(&bar, baz.await)`, the value `&bar` is considered live across the `await` point. This is also true of the scrutinee of the match expression, since [the scrutinee is live for the entire match block][temporary-scopes].
137+
Besides named variables, temporary values also affect auto trait inference.
138+
For example in `foo(&bar, baz.await)`, the value `&bar` is considered live across the `await` point.
139+
This is also true of the scrutinee of the match expression, since [the scrutinee is live for the entire match block][temporary-scopes].
138140

139141
## `unsafe` blocks
140142

0 commit comments

Comments
 (0)