mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 21:31:17 -06:00
@@ -175,6 +175,7 @@ match name {
|
|||||||
|
|
||||||
// name is not moved here; the match only took a reference to its data rather
|
// name is not moved here; the match only took a reference to its data rather
|
||||||
// than moving it
|
// than moving it
|
||||||
|
println!("name is: {:?}", name);
|
||||||
```
|
```
|
||||||
|
|
||||||
## Destructuring
|
## Destructuring
|
||||||
|
|||||||
Reference in New Issue
Block a user