fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0529]: expected an array or slice, found `Vec<i32>` 2 --> $DIR/pattern-slice-vec.rs:8:12 3 | 4LL | if let [_, _, _] = foo() {} 5 | ^^^^^^^^^ ----- help: consider slicing here: `foo()[..]` 6 | | 7 | pattern cannot match with input type `Vec<i32>` 8 9error[E0529]: expected an array or slice, found `Vec<i32>` 10 --> $DIR/pattern-slice-vec.rs:12:12 11 | 12LL | if let [] = &foo() {} 13 | ^^ ------ help: consider slicing here: `&foo()[..]` 14 | | 15 | pattern cannot match with input type `Vec<i32>` 16 17error[E0529]: expected an array or slice, found `Vec<i32>` 18 --> $DIR/pattern-slice-vec.rs:16:12 19 | 20LL | if let [] = foo() {} 21 | ^^ ----- help: consider slicing here: `foo()[..]` 22 | | 23 | pattern cannot match with input type `Vec<i32>` 24 25error[E0529]: expected an array or slice, found `Vec<_>` 26 --> $DIR/pattern-slice-vec.rs:23:9 27 | 28LL | match &v { 29 | -- help: consider slicing here: `&v[..]` 30LL | 31LL | [5] => {} 32 | ^^^ pattern cannot match with input type `Vec<_>` 33 34error[E0529]: expected an array or slice, found `Vec<{integer}>` 35 --> $DIR/pattern-slice-vec.rs:28:9 36 | 37LL | let [..] = vec![1, 2, 3]; 38 | ^^^^ ------------- help: consider slicing here: `vec![1, 2, 3][..]` 39 | | 40 | pattern cannot match with input type `Vec<{integer}>` 41 42error: aborting due to 5 previous errors 43 44For more information about this error, try `rustc --explain E0529`.