rollup merge of #20554: huonw/mut-pattern
Conflicts: src/librustc_typeck/check/_match.rs
This commit is contained in:
commit
bb5e16b4b8
19 changed files with 92 additions and 26 deletions
|
|
@ -3484,8 +3484,9 @@ fn main() {
|
|||
|
||||
```
|
||||
|
||||
Patterns can also dereference pointers by using the `&`, `box` symbols,
|
||||
as appropriate. For example, these two matches on `x: &int` are equivalent:
|
||||
Patterns can also dereference pointers by using the `&`, `&mut` and `box`
|
||||
symbols, as appropriate. For example, these two matches on `x: &int` are
|
||||
equivalent:
|
||||
|
||||
```
|
||||
# let x = &3i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue