]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/rfc-2005-default-binding-mode/slice.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / rfc-2005-default-binding-mode / slice.stderr
index 18d8f5481c9fbf39aa7274b2587e524488ae71bc..60c1f5420f62c29322de982b95fc63ad28cdf9d8 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 by adding a match arm with a wildcard pattern or an explicit pattern as shown
+   |
+LL ~         [first, remainder @ ..] => {}
+LL ~         &[] => todo!(),
+   |
 
 error: aborting due to previous error