diff options
Diffstat (limited to 'tests/ui/rfc-2005-default-binding-mode/slice.rs')
| -rw-r--r-- | tests/ui/rfc-2005-default-binding-mode/slice.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/rfc-2005-default-binding-mode/slice.rs b/tests/ui/rfc-2005-default-binding-mode/slice.rs new file mode 100644 index 00000000000..363a0e3e649 --- /dev/null +++ b/tests/ui/rfc-2005-default-binding-mode/slice.rs @@ -0,0 +1,7 @@ +pub fn main() { + let sl: &[u8] = b"foo"; + + match sl { //~ ERROR non-exhaustive patterns + [first, remainder @ ..] => {}, + }; +} |
