3 The tracking issue for this feature is: [#51994]
4 [#51994]: https://github.com/rust-lang/rust/issues/51994
6 ------------------------
8 The `self_struct_ctor` feature gate lets you use the special `Self`
9 identifier as a constructor and a pattern.
14 #![feature(self_struct_ctor)]
24 Self(1,2) // constructed by `Self`, it is the same as `ST(1, 2)`
29 Self(x, y) => println!("{} {}", x, y), // used as a pattern