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