blob: 069f227e923fa44a9b0cfc2de3089a0fec2f0162 [file] [log] [blame] [view] [edit]
# `_` expressions
> **<sup>Syntax</sup>**\
> _UnderscoreExpression_ :\
> &nbsp;&nbsp; `_`
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;
```