]> 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 5e3dfafee196911bbff05a29541f9f0a8fd3a765..df5b2000728f3c44163938f5a86442e416ae6fcc 100644 (file)
@@ -5,7 +5,11 @@ LL |     match sl {
    |           ^^ pattern `&[]` not covered
    |
    = 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
+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