1 error[E0529]: expected an array or slice, found `Vec<i32>`
2 --> $DIR/pattern-slice-vec.rs:8:12
4 LL | if let [_, _, _] = foo() {}
5 | ^^^^^^^^^ ----- help: consider slicing here: `foo()[..]`
7 | pattern cannot match with input type `Vec<i32>`
9 error[E0529]: expected an array or slice, found `Vec<i32>`
10 --> $DIR/pattern-slice-vec.rs:12:12
12 LL | if let [] = &foo() {}
13 | ^^ ------ help: consider slicing here: `&foo()[..]`
15 | pattern cannot match with input type `Vec<i32>`
17 error[E0529]: expected an array or slice, found `Vec<i32>`
18 --> $DIR/pattern-slice-vec.rs:16:12
20 LL | if let [] = foo() {}
21 | ^^ ----- help: consider slicing here: `foo()[..]`
23 | pattern cannot match with input type `Vec<i32>`
25 error[E0529]: expected an array or slice, found `Vec<_>`
26 --> $DIR/pattern-slice-vec.rs:23:9
29 | -- help: consider slicing here: `&v[..]`
32 | ^^^ pattern cannot match with input type `Vec<_>`
34 error: aborting due to 4 previous errors
36 For more information about this error, try `rustc --explain E0529`.