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[E0529]: expected an array or slice, found `Vec<{integer}>`
35 --> $DIR/pattern-slice-vec.rs:28:9
37 LL | let [..] = vec![1, 2, 3];
38 | ^^^^ ------------- help: consider slicing here: `vec![1, 2, 3][..]`
40 | pattern cannot match with input type `Vec<{integer}>`
42 error: aborting due to 5 previous errors
44 For more information about this error, try `rustc --explain E0529`.