diff options
| author | James Dietz <jamesthespeedy@gmail.com> | 2023-06-15 06:50:56 -0400 |
|---|---|---|
| committer | James Dietz <jamesthespeedy@gmail.com> | 2023-06-15 06:50:56 -0400 |
| commit | b1f7ab2ea28b02f5c3db4204e1063d0495fce2a2 (patch) | |
| tree | 5d4f1e49057675961cc1e33b36a0a3c562913b31 | |
| parent | 20499b96692e35e9bcfd1d97d8bc9640c1e5d345 (diff) | |
| download | rust-b1f7ab2ea28b02f5c3db4204e1063d0495fce2a2.tar.gz rust-b1f7ab2ea28b02f5c3db4204e1063d0495fce2a2.zip | |
add test
| -rw-r--r-- | tests/ui/match/issue-112438.rs | 11 |
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() {} |
