about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-06-15 17:52:38 +0200
committerGitHub <noreply@github.com>2023-06-15 17:52:38 +0200
commitc0a089e118d86f150009db3bcfd8ef7f2775b361 (patch)
treed200a50397e0fd7fb9518f1cde0f89a989d740e3 /tests
parentc4c5e0baee408c8da6a44bb01e96ab6ad600f6b8 (diff)
parentb1f7ab2ea28b02f5c3db4204e1063d0495fce2a2 (diff)
downloadrust-c0a089e118d86f150009db3bcfd8ef7f2775b361.tar.gz
rust-c0a089e118d86f150009db3bcfd8ef7f2775b361.zip
Rollup merge of #112634 - mj10021:issue-112438-fix, r=compiler-errors
add InlineConst check

add check to close #112438
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/match/issue-112438.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/match/issue-112438.rs b/tests/ui/match/issue-112438.rs
new file mode 100644
index 00000000000..15f380f7fb4
--- /dev/null
+++ b/tests/ui/match/issue-112438.rs
@@ -0,0 +1,11 @@
+// run-pass
+#![feature(inline_const_pat)]
+#![allow(dead_code)]
+#![allow(incomplete_features)]
+fn foo<const V: usize>() {
+    match 0 {
+        const { 1 << 5 } | _ => {}
+    }
+}
+
+fn main() {}