]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-2005-default-binding-mode/slice.stderr
When finding a match expr with a single arm that requires more, suggest it
[rust.git] / src / test / ui / rfc-2005-default-binding-mode / slice.stderr
index 18d8f5481c9fbf39aa7274b2587e524488ae71bc..df5b2000728f3c44163938f5a86442e416ae6fcc 100644 (file)
@@ -4,8 +4,12 @@ error[E0004]: non-exhaustive patterns: `&[]` not covered
 LL |     match sl {
    |           ^^ pattern `&[]` not covered
    |
-   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
    = note: the matched value is of type `&[u8]`
+help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
+   |
+LL ~         [first, remainder @ ..] => {}
+LL ~         &[] => todo!(),
+   |
 
 error: aborting due to previous error