Co-authored-by: kennytm <kennytm@gmail.com>
This commit is contained in:
Jules Bertholet 2024-05-06 17:29:58 -04:00 committed by GitHub
parent cbf6f22fac
commit f42a677d6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ In edition 2024 and above, an `&` or `&mut` pattern can match against this
inherited reference, consuming it. A pattern that does this has no other effect.
```rust
// New in edition 2023:
// New in edition 2024:
// `&` pattern consumes inherited `&` reference.
let [&x] = &[42];
let _: u8 = x;