summaryrefslogtreecommitdiffstats
path: root/tests/ui/match/single-line.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/match/single-line.rs')
-rw-r--r--tests/ui/match/single-line.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/match/single-line.rs b/tests/ui/match/single-line.rs
new file mode 100644
index 000000000..0f69d089f
--- /dev/null
+++ b/tests/ui/match/single-line.rs
@@ -0,0 +1,3 @@
+fn main() {
+ let _ = match Some(42) { Some(x) => x, None => "" }; //~ ERROR E0308
+}