How to do a borrow in match?

This forum uses markdown as a markup language, so you can used fenced code blocks:

```rs
// Code
```

Other than that, you can use ref inside a match to create a reference for the match arm.

3 Likes