mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-25 15:04:33 +00:00
removed entry for bindings after at in unstable book
This commit is contained in:
parent
a11c8e7ff3
commit
2d82b4a2b7
@ -1,23 +0,0 @@
|
||||
# `bindings_after_at`
|
||||
|
||||
The tracking issue for this feature is [#65490]
|
||||
|
||||
[#65490]: https://github.com/rust-lang/rust/issues/65490
|
||||
|
||||
------------------------
|
||||
|
||||
|
||||
The `bindings_after_at` feature gate allows patterns of form `binding @ pat` to have bindings in `pat`.
|
||||
|
||||
```rust
|
||||
#![feature(bindings_after_at)]
|
||||
|
||||
struct Point {
|
||||
x: i32,
|
||||
y: i32,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let point@ Point{x: px, y: py} = Point {x: 12, y: 34};
|
||||
}
|
||||
```
|
Loading…
Reference in New Issue
Block a user