summaryrefslogtreecommitdiffstats
path: root/tests/pretty/match-naked-expr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pretty/match-naked-expr.rs')
-rw-r--r--tests/pretty/match-naked-expr.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/pretty/match-naked-expr.rs b/tests/pretty/match-naked-expr.rs
new file mode 100644
index 000000000..7c16bbefe
--- /dev/null
+++ b/tests/pretty/match-naked-expr.rs
@@ -0,0 +1,10 @@
+// pp-exact
+
+fn main() {
+ let x = Some(3);
+ let _y =
+ match x {
+ Some(_) => "some(_)".to_string(),
+ None => "none".to_string(),
+ };
+}