summaryrefslogtreecommitdiffstats
path: root/tests/pretty/struct-pattern.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pretty/struct-pattern.rs')
-rw-r--r--tests/pretty/struct-pattern.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/pretty/struct-pattern.rs b/tests/pretty/struct-pattern.rs
new file mode 100644
index 000000000..6acb2e27f
--- /dev/null
+++ b/tests/pretty/struct-pattern.rs
@@ -0,0 +1,5 @@
+// pp-exact
+// pretty-compare-only
+// Testing that shorthand struct patterns are preserved
+
+fn main() { let Foo { a, ref b, mut c, x: y, z: z } = foo; }