Skip to content

Commit ef65e09

Browse files
committed
added unstable-book entry for bindings_after_at
1 parent 595088d commit ef65e09

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# `bindings_after_at`
2+
3+
The tracking issue for this feature is [#65490]
4+
5+
[#65490]: https://github.com/rust-lang/rust/issues/65490
6+
7+
8+
The `bindings_after_at` feature gate allows patterns of form `binding @ pat` to have bindings in `pat`.
9+
10+
```rust
11+
#![feature(bindings_after_at)]
12+
13+
struct Point {
14+
x: i32,
15+
y: i32,
16+
}
17+
18+
fn main() {
19+
let point@ Point{x: px, y: py} = Point {x: 12, y: 34};
20+
}
21+
```
22+

0 commit comments

Comments
 (0)