about summary refs log tree commit diff
path: root/src/test/ui
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2019-01-14 17:54:00 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2019-01-22 17:22:29 +0100
commita59eabbc36d7b96bb9e42d9bc6691d28b62c4187 (patch)
treed0f4b7016da9a15c573dd69d5db55a6012299057 /src/test/ui
parentad30e9a6814b5d29dfbdcd85ecde48afcc94389b (diff)
downloadrust-a59eabbc36d7b96bb9e42d9bc6691d28b62c4187.tar.gz
rust-a59eabbc36d7b96bb9e42d9bc6691d28b62c4187.zip
Get rid of the fake stack frame
Diffstat (limited to 'src/test/ui')
-rw-r--r--src/test/ui/consts/match_ice.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/consts/match_ice.rs b/src/test/ui/consts/match_ice.rs
new file mode 100644
index 00000000000..c785317778b
--- /dev/null
+++ b/src/test/ui/consts/match_ice.rs
@@ -0,0 +1,11 @@
+// compile-pass
+// https://github.com/rust-lang/rust/issues/53708
+
+struct S;
+
+fn main() {
+    const C: &S = &S;
+    match C {
+        C => {}
+    }
+}