]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
ea8adc8c 1error[E0004]: non-exhaustive patterns: `&[]` not covered
dfeec247 2 --> $DIR/slice.rs:4:11
ea8adc8c 3 |
532ac7d7 4LL | match sl {
ea8adc8c 5 | ^^ pattern `&[]` not covered
532ac7d7 6 |
ba9703b0 7 = note: the matched value is of type `&[u8]`
ee023bcb
FG
8help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
9 |
10LL ~ [first, remainder @ ..] => {}
11LL ~ &[] => todo!(),
12 |
ea8adc8c
XL
13
14error: aborting due to previous error
15
0531ce1d 16For more information about this error, try `rustc --explain E0004`.