1 error[E0529]: expected an array or slice, found `Vec<u32>`
2 --> $DIR/pattern-struct-with-slice-vec-field.rs:21:18
4 LL | Foo { v: [1, 2] } => {}
5 | ^^^^^^ pattern cannot match with input type `Vec<u32>`
7 error[E0529]: expected an array or slice, found `Vec<u32>`
8 --> $DIR/pattern-struct-with-slice-vec-field.rs:29:18
10 LL | Bar { v: [1, 2] } => {}
11 | ^^^^^^ pattern cannot match with input type `Vec<u32>`
13 error: aborting due to 2 previous errors
15 For more information about this error, try `rustc --explain E0529`.