summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-12285.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-12285.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-12285.rs b/src/test/ui/issues/issue-12285.rs
new file mode 100644
index 000000000..24ac5d2fb
--- /dev/null
+++ b/src/test/ui/issues/issue-12285.rs
@@ -0,0 +1,14 @@
+// run-pass
+
+struct S;
+
+fn main() {
+ match Some(&S) {
+ Some(&S) => {},
+ _x => unreachable!()
+ }
+ match Some(&S) {
+ Some(&S) => {},
+ None => unreachable!()
+ }
+}