summaryrefslogtreecommitdiffstats
path: root/src/test/ui/binding/match-naked-record.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/binding/match-naked-record.rs')
-rw-r--r--src/test/ui/binding/match-naked-record.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/binding/match-naked-record.rs b/src/test/ui/binding/match-naked-record.rs
new file mode 100644
index 000000000..f7479152e
--- /dev/null
+++ b/src/test/ui/binding/match-naked-record.rs
@@ -0,0 +1,13 @@
+// run-pass
+#![allow(dead_code)]
+// pretty-expanded FIXME #23616
+
+struct X { x: isize }
+
+pub fn main() {
+ let _x = match 0 {
+ _ => X {
+ x: 0
+ }
+ };
+}