diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-37598.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-37598.rs b/src/test/ui/issues/issue-37598.rs new file mode 100644 index 000000000..458e999c3 --- /dev/null +++ b/src/test/ui/issues/issue-37598.rs @@ -0,0 +1,11 @@ +// check-pass + +fn check(list: &[u8]) { + match list { + &[] => {}, + &[_u1, _u2, ref _next @ ..] => {}, + &[_u1] => {}, + } +} + +fn main() {} |