summaryrefslogtreecommitdiffstats
path: root/src/test/pretty/match-naked-expr-medium.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/pretty/match-naked-expr-medium.rs')
-rw-r--r--src/test/pretty/match-naked-expr-medium.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/pretty/match-naked-expr-medium.rs b/src/test/pretty/match-naked-expr-medium.rs
new file mode 100644
index 000000000..836af9900
--- /dev/null
+++ b/src/test/pretty/match-naked-expr-medium.rs
@@ -0,0 +1,14 @@
+// pp-exact
+
+fn main() {
+ let x = Some(3);
+ let _y =
+ match x {
+ Some(_) =>
+ ["some(_)".to_string(), "not".to_string(), "SO".to_string(),
+ "long".to_string(), "string".to_string()],
+ None =>
+ ["none".to_string(), "a".to_string(), "a".to_string(),
+ "a".to_string(), "a".to_string()],
+ };
+}