Co-authored-by: Tyler Mandry <tmandry@gmail.com>
This commit is contained in:
Jules Bertholet 2024-05-16 20:41:27 -04:00 committed by GitHub
parent 3ff0267761
commit b07848501c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ let &[[&mut a]] = &[&mut [42]]; // x: i32
//! Edition ≥ 2024: works with or without this rule (alternatives to above)
// No need to abandon match ergonomics
let &[[&a]] = &[&mut [42]]; // x: i32
let &[&mut [&a]] = &[&mut [42]]; // x: i32
let &[&mut [a]] = &[&mut [42]]; // x: i32
```
### Makes behavior more consistent