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 595088d commit ef65e09Copy full SHA for ef65e09
src/doc/unstable-book/src/language-features/bindings-after-at.md
@@ -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