Files
rust/tests/ui/pattern/refutable-pattern-for-loop-15381.stderr

12 lines
424 B
Plaintext
Raw Permalink Normal View History

2022-12-23 21:02:23 +01:00
error[E0005]: refutable pattern in `for` loop binding
2025-07-24 19:07:20 +05:00
--> $DIR/refutable-pattern-for-loop-15381.rs:6:9
2018-07-15 14:11:54 -07:00
|
LL | for &[x,y,z] in values.chunks(3).filter(|&xs| xs.len() == 3) {
| ^^^^^^^^ patterns `&[]`, `&[_]`, `&[_, _]` and 1 more not covered
|
= note: the matched value is of type `&[u8]`
2018-07-15 14:11:54 -07:00
error: aborting due to 1 previous error
2018-07-15 14:11:54 -07:00
2019-12-27 17:53:00 +00:00
For more information about this error, try `rustc --explain E0005`.