blob: 069f227e923fa44a9b0cfc2de3089a0fec2f0162 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# `_` expressions
> **<sup>Syntax</sup>**\
> _UnderscoreExpression_ :\
> `_`
Underscore expressions, denoted with the symbol `_`, are used to signify a
placeholder in a destructuring assignment. They may only appear in the left-hand
side of an assignment.
An example of an `_` expression:
```rust
let p = (1, 2);
let mut a = 0;
(_, a) = p;
```
|