We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e1bb8e commit 70650acCopy full SHA for 70650ac
text/3627-match-ergonomics-2024.md
@@ -228,20 +228,20 @@ allows strictly more code to compile.)
228
```rust
229
//! All editions (new)
230
231
-let &[[a]]; = &[&mut [42]];
+let &[[a]] = &[&mut [42]];
232
let _: &u8 = a;
233
234
-let &[[a]]; = &mut [&mut [42]];
+let &[[a]] = &mut [&mut [42]];
235
236
```
237
238
239
//! Edition ≥ 2024
240
241
-let &[[&a]]; = &[&mut [42]];
+let &[[&a]] = &[&mut [42]];
242
let _: u8 = a;
243
244
-//let &[[&mut a]]; = &[&mut [42]]; // ERROR
+//let &[[&mut a]] = &[&mut [42]]; // ERROR
245
246
247
# Migration
0 commit comments