Skip to content

Commit 1ae4ee6

Browse files
committed
Update reference for rust-lang/rust#140593
1 parent 0ba97b1 commit 1ae4ee6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/destructors.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ expression which is one of the following:
374374
expression], [braced struct][struct expression], or [tuple][tuple expression]
375375
expression.
376376
* The final expression of any extending [block expression].
377+
* The arguments to [tuple struct][tuple struct] and [tuple variant][tuple variant] constructors.
377378

378379
So the borrow expressions in `&mut 0`, `(&1, &mut 2)`, and `Some { 0: &mut 3 }`
379380
are all extending expressions. The borrows in `&0 + &1` and `Some(&mut 0)` are
@@ -467,6 +468,8 @@ There is one additional case to be aware of: when a panic reaches a [non-unwindi
467468
[struct pattern]: patterns.md#struct-patterns
468469
[tuple pattern]: patterns.md#tuple-patterns
469470
[tuple struct pattern]: patterns.md#tuple-struct-patterns
471+
[tuple struct]: struct.md#r-type.struct.tuple
472+
[tuple variant]: enum.md#r-type.enum.declaration
470473

471474
[array expression]: expressions/array-expr.md#array-expressions
472475
[block expression]: expressions/block-expr.md

0 commit comments

Comments
 (0)